Make easymde compatible with safari

This commit is contained in:
2024-10-16 12:54:08 +02:00
parent 74a506c48b
commit 645b8a543e
2 changed files with 24 additions and 14 deletions

View File

@ -1,5 +1,5 @@
<div>
<textarea is="markdown-input" name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}>{% if widget.value %}{{ widget.value }}{% endif %}</textarea>
<markdown-input name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}>{% if widget.value %}{{ widget.value }}{% endif %}</markdown-input>
{# The easymde script can be included twice, it's safe in the code #}
<script src="{{ statics.js }}" defer> </script>