{% load wagtailadmin_tags compress localize %}
{% comment %}
Javascript declarations to be included on the 'create page' and 'edit page' views
{% endcomment %}
{% compress js %}
{% comment %}
TODO: use the insert_editor_js hook to inject things like image-chooser.js and hallo-wagtailimage.js
from their respective apps such as wagtailimages -
ideally wagtailadmin shouldn't have to know anything at all about wagtailimages.
TODO: a method of injecting these sorts of things on demand when the modal is spawned.
{% endcomment %}
{% hook_output 'insert_editor_js' %}
{% endcompress %}
{% comment %}
Put it outside compress to be sure that offline compression also works fine.
{% endcomment %}
{% get_localized_datepicker_js %}
{% comment %}
Additional js from widgets media. Allows for custom widgets in admin panel.
Can be used for TODO above (including image-choser.js at wagtailimages)
{% endcomment %}
{{ edit_handler.form.media.js }}