{% load static i18n %} {% comment %} Every script and style carries the nonce of a Content Security Policy, when there is one; csp_nonce.js, loaded first, gives it to the styles the editor and its tools inject. {% endcomment %} EditorJS {% if csp_nonce is not None %}{% endif %} body { margin: 0; padding: 12px; font-family: sans-serif; } {% for css_file in css_files %} {% endfor %}
{% for name, config in tools_config.items %} {% if config.static %} {% else %} {% endif %} {% endfor %}