Add SimpleMDE to edit markdown

This commit is contained in:
rubenwardy 2018-09-14 23:10:30 +01:00
parent ed409df323
commit 2229b32c90
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
4 changed files with 37 additions and 0 deletions

4
app/public/static/simplemde.min.css vendored Normal file

File diff suppressed because one or more lines are too long

15
app/public/static/simplemde.min.js vendored Normal file

File diff suppressed because one or more lines are too long

@ -459,3 +459,15 @@ table.fancyTable tfoot td {
.wiptopic a {
color: #7ac;
}
.editor-toolbar {
background-color: #333 !important;
}
.CodeMirror {
background-color: #222 !important;
}
.editor-preview-side {
background-color: #222 !important;
}

@ -70,6 +70,12 @@
<div class="pkg_meta">{{ render_submit_field(form.submit) }}</div>
</form>
<script src="/static/simplemde.min.js"></script>
<link rel="stylesheet" type="text/css" href="/static/simplemde.min.css">
<script>
var simplemde = new SimpleMDE({ element: $("#desc")[0] });
</script>
{% if enable_wizard %}
<script src="/static/url.min.js"></script>
<script src="/static/polltask.js"></script>