diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-01-22 23:10:02 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-01-22 23:10:06 +0000 |
| commit | 595d6ea3b6d663080448085cc2b0c9473388bc37 (patch) | |
| tree | 09c7841f9ff18a6bb5a85af6a8b83d7c1e2f3d97 /app/templates/base.html | |
| parent | 71fa62fd6a10b3c39e236b65e5f4054e71770e2b (diff) | |
| download | cheatdb-595d6ea3b6d663080448085cc2b0c9473388bc37.tar.xz | |
Use server-side markdown renderer in WYSIWYG preview
Fixes #117
Diffstat (limited to 'app/templates/base.html')
| -rw-r--r-- | app/templates/base.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/templates/base.html b/app/templates/base.html index df10208..cfe2dfc 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -148,12 +148,9 @@ <script src="/static/bootstrap.min.js"></script> <script src="/static/easymde.min.js"></script> <link rel="stylesheet" type="text/css" href="/static/easymde.min.css"> - <script> - $("textarea.markdown").each(function() { - new EasyMDE({ element: this, hideIcons: ["image"], forceSync: true }); - }) - </script> <link href="/static/fa/css/all.css" rel="stylesheet"> + <script src="/static/markdowntextarea.js"></script> + {% block scriptextra %}{% endblock %} </body> </html> |
