Five-line partial included on every page that mounts an editor. Two <link> stylesheets (vendor + glue) and two nonce'd <script> tags (bundle + glue). The `defer` attribute preserves document order, so editor.bundle.js (which assigns window.__editor) executes before editor.js (which reads it). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 lines
486 B
HTML
5 lines
486 B
HTML
{# Editor assets — include on any page that mounts a <textarea data-editor-language>. #}
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='vendor/editor.bundle.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/editor.css') }}">
|
|
<script src="{{ url_for('static', filename='vendor/editor.bundle.js') }}" nonce="{{ g.csp_nonce }}" defer></script>
|
|
<script src="{{ url_for('static', filename='js/editor.js') }}" nonce="{{ g.csp_nonce }}" defer></script>
|