rename js obj to froghat, add widget plugin

This commit is contained in:
evilchili
2025-12-25 10:42:59 -08:00
parent f21bdbdb0c
commit 27cf36c390
5 changed files with 82 additions and 70 deletions
+4 -4
View File
@@ -4,7 +4,7 @@
{% endblock %}
{% block content %}
<div id='content'>{{ page.body }}</div>
<div id='froghat'>{{ page.body }}</div>
{% endblock %}
@@ -13,14 +13,14 @@
<!-- for converting markdown to html -->
<script src="{{ url_for('static', filename='editor/purify.min.js' ) }}"></script>
<script src="{{ url_for('static', filename='editor/marked.umd.min.js' ) }}"></script>
<script src="{{ url_for('static', filename='editor/grung.js' ) }}"></script>
<script src="{{ url_for('static', filename='editor/froghat.js' ) }}"></script>
{% if user.can_write(page) %}
<script src="{{ url_for('static', filename='editor/turndown.js' ) }}"></script>
<script src="{{ url_for('static', filename='editor/joplin-turndown-plugin-gfm.js' ) }}"></script>
<script src="{{ url_for('static', filename='editor/grung-editor.js' ) }}"></script>
<script src="{{ url_for('static', filename='editor/froghat-editor.js' ) }}"></script>
{% endif %}
<script>
const wiki = new Grung{% if user.can_write(page) %}Editor{% endif %}({plugins: [MacroPlugin]});
const wiki = new Froghat{% if user.can_write(page) %}Editor{% endif %}({plugins: [MacroPlugin, WidgetPlugin]});
wiki.view();
</script>
{% endblock %}