Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Initialise the tinyMCE editor on modal dialogs for exercise editing

Roland Geider191e98ac54d6
diff --git a/exercises/templates/overview.html b/exercises/templates/overview.html
index 5222ba9e5..26b9151ab 100644
--- a/exercises/templates/overview.html
+++ b/exercises/templates/overview.html
@@ -14,6 +14,12 @@
<script src="{% static 'js/tinymce/tiny_mce.js' %}"></script>
<script src="{% static 'js/workout-manager.js' %}"></script>
<script>
+
+function custom_modal_init()
+{
+ init_tinymce();
+}
+
$(document).ready(function() {
form_modal_dialog();
@@ -183,4 +189,4 @@ $(document).ready(function() {
</p>
</div>
-{% endblock %}
\ No newline at end of file
+{% endblock %}