diff --git a/lms/templates/wiki/base.html b/lms/templates/wiki/base.html index 8a9686f546c155e162516a76bb092daac6d64c65..22b107104b223def65b587ab4e94fdf4526528ee 100644 --- a/lms/templates/wiki/base.html +++ b/lms/templates/wiki/base.html @@ -31,6 +31,9 @@ {% addtoblock 'js' %} {% comment %} These scripts load at the bottom of the body {% endcomment %} + <script> + window.onload = add_schematic_handler(window.onload); + </script> <script src="{% static 'js/bootstrap-alert.js' %}"></script> <script src="{% static 'js/bootstrap-collapse.js' %}"></script> diff --git a/lms/templates/wiki/preview_inline.html b/lms/templates/wiki/preview_inline.html index a5c6668d16b37425b38a11098b548032d2b1e576..2f09d21bd35fafdb4b2a362cb449b8fa9ceaa219 100644 --- a/lms/templates/wiki/preview_inline.html +++ b/lms/templates/wiki/preview_inline.html @@ -41,6 +41,10 @@ {% compressed_js 'application' %} {% compressed_js 'module-js' %} + <script> + window.onload = add_schematic_handler(window.onload); + </script> + {% with mathjax_mode='wiki' %} {% include "mathjax_include.html" %} {% endwith %}