mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +01:00
Add SimpleMDE to edit markdown
This commit is contained in:
parent
ed409df323
commit
2229b32c90
4
app/public/static/simplemde.min.css
vendored
Normal file
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
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 {
|
.wiptopic a {
|
||||||
color: #7ac;
|
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>
|
<div class="pkg_meta">{{ render_submit_field(form.submit) }}</div>
|
||||||
</form>
|
</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 %}
|
{% if enable_wizard %}
|
||||||
<script src="/static/url.min.js"></script>
|
<script src="/static/url.min.js"></script>
|
||||||
<script src="/static/polltask.js"></script>
|
<script src="/static/polltask.js"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user