Properly initialise markdown on asset comments

This commit is contained in:
2021-12-22 16:00:27 +00:00
parent b9e763777f
commit 9ab34ded98

View File

@@ -12,6 +12,7 @@
{{ block.super }}
<script src="{% static 'js/selects.js' %}"></script>
<script src="{% static 'js/simplemde.min.js' %}"></script>
<script src="{% static 'js/interaction.js' %}"></script>
{% endblock %}
{% block js %}
@@ -74,6 +75,11 @@
preserveSelected: false
});
</script>
<script>
$(document).ready(function () {
setupMDE('#id_comments');
});
</script>
{% endblock %}
{% block content %}