Giter Site home page Giter Site logo

flask-simplemde's People

Contributors

pyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flask-simplemde's Issues

How to add a save button?

I am trying to make a blog powered by flask. SimpleMDE for flask is really a easy tool to add an editor for markdown in flask. Butt I can not know how to add a button to save my post. I am new to html and js, I think form in html will helps, but the code in javascript seems difficult for me. Could you give me some hints to add a post-save function? ;)

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Flask-SimpleMDE example</title>
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel='stylesheet' href='.{{ url_for("static", filename="css/simplemde.min.css") }}'>
    <script src='.{{ url_for("static", filename="js/simplemde.min.js") }}'></script>
  </head>
  <body>
    <form method='post' class='form' role='form'>
      <div class="form-group ">
        <input class="form-control" id="post_title" name="post_title" type="text" value="Title?">
      </div>
      <div class="form-group ">
        <textarea>
          Some Markdown Text Here
        </textarea>
      </div>

      <input class='btn btn-default' id='submit' name='submit' type='submit' value='Save'>
    </form>
    {{ simplemde.load }}
  </body>
</html>

Font awesome & flask-simplemde compatibility

Hi,

I try to add some icons from FontAwesome in my Flask project, it's working, great.
The problem is I use too flask-simplemde in this project.
Both are not friends.

I think simple-mde retrieve icons from FontAwesome and some are not showing up..

Screenshot 2020-06-01 at 16 14 48

This is happening only when I add the <script> tag for FontAwesome in my template file.

Thank you for help !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.