{% extends "_base.html" %} {% load i18n %} {% load static %} {% load widget_tweaks %} {% load base_filters %} {% load content_filters %} {% load page_filters %} {% load rules %} {% load render_bundle from webpack_loader %} {% block content %} {% get_current_language as LANGUAGE_CODE %} {% has_perm 'cms.change_page_object' request.user page as can_edit_page %}
{{ media_config_data|json_script:"media_config_data" }} {% if not can_edit_page or page_form.instance.id and page_form.instance.archived %} {% include "../_tinymce_config.html" with readonly=1 %} {% else %} {% include "../_tinymce_config.html" %} {% if page_form.instance.id %} {% include "../_content_edit_lock.html" with lock_key=page.edit_lock_key %} {% endif %} {% endif %} {% include "../generic_confirmation_dialog.html" %} {% include "pages/_page_preview_overlay.html" %} {% endblock content %} {% block javascript %} {% render_bundle "editor" "js" %} {% endblock javascript %}