pyx / flask-simplemde Goto Github PK
View Code? Open in Web Editor NEWFlask-SimpleMDE - a Flask extension for SimpleMDE
License: Other
Flask-SimpleMDE - a Flask extension for SimpleMDE
License: Other
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>
Hi! Any chance you could add the rest of the configuration listed in the simplemde documentation to the extension and support to flask wtforms?
Happy to sponsor the project.
How can add image in my post from static file
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..
This is happening only when I add the <script>
tag for FontAwesome in my template file.
Thank you for help !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.