zsiciarz / django-markitup

Markup handling (using Jay Salvat's MarkItUp! flexible universal markup editor) for Django
https://github.com/zsiciarz/django-markitup
BSD 3-Clause "New" or "Revised" License
47 stars 31 forks source link

Don't use inline scripts to render the widget #26

Closed stefanor closed 4 years ago

stefanor commented 6 years ago

Rather than using inline scripts to configure markitup editors, just apply some attributes to the widget, so we can locate it later in the DOM.

This means jQuery doesn't have to be loaded before the MarkItUpWidget is rendered on a page, all scripts can be loaded in the document foot.

Fixes: #25