{#  ============================================================
    AliothEditor assets — include once per editor page:

        {% include 'admin/editor_assets.html' %}

    Loads the vendored converters (marked / turndown / GFM),
    the editor itself, its stylesheet, and the translated UI
    strings. Everything is served from /static — zero external
    requests, matching the privacy promise of the engine.
    ============================================================ #}
<link rel="stylesheet" href="{{ static_v('css/alioth-editor.css') }}">
<script src="{{ static_v('js/vendor/marked.min.js') }}"></script>
<script src="{{ static_v('js/vendor/turndown.js') }}"></script>
<script src="{{ static_v('js/vendor/turndown-plugin-gfm.js') }}"></script>
<script>
window.AE_I18N = {
    tab_visual: {{ t('aeditor.tab_visual')|tojson }},
    tab_markdown: {{ t('aeditor.tab_markdown')|tojson }},
    tab_html: {{ t('aeditor.tab_html')|tojson }},
    undo: {{ t('aeditor.undo')|tojson }},
    redo: {{ t('aeditor.redo')|tojson }},
    paragraph: {{ t('aeditor.paragraph')|tojson }},
    heading: {{ t('aeditor.heading')|tojson }},
    blockquote: {{ t('aeditor.blockquote')|tojson }},
    bold: {{ t('aeditor.bold')|tojson }},
    italic: {{ t('aeditor.italic')|tojson }},
    underline: {{ t('aeditor.underline')|tojson }},
    strikethrough: {{ t('aeditor.strikethrough')|tojson }},
    inline_code: {{ t('aeditor.inline_code')|tojson }},
    align_left: {{ t('aeditor.align_left')|tojson }},
    align_center: {{ t('aeditor.align_center')|tojson }},
    align_right: {{ t('aeditor.align_right')|tojson }},
    bullet_list: {{ t('aeditor.bullet_list')|tojson }},
    numbered_list: {{ t('aeditor.numbered_list')|tojson }},
    link: {{ t('aeditor.link')|tojson }},
    link_prompt: {{ t('aeditor.link_prompt')|tojson }},
    unlink: {{ t('aeditor.unlink')|tojson }},
    image: {{ t('aeditor.image')|tojson }},
    image_url_prompt: {{ t('aeditor.image_url_prompt')|tojson }},
    image_alt_prompt: {{ t('aeditor.image_alt_prompt')|tojson }},
    table: {{ t('aeditor.table')|tojson }},
    table_size_prompt: {{ t('aeditor.table_size_prompt')|tojson }},
    code_block: {{ t('aeditor.code_block')|tojson }},
    code_lang_prompt: {{ t('aeditor.code_lang_prompt')|tojson }},
    hr: {{ t('aeditor.hr')|tojson }},
    clear_format: {{ t('aeditor.clear_format')|tojson }},
    fullscreen: {{ t('aeditor.fullscreen')|tojson }},
    words: {{ t('aeditor.words')|tojson }},
    chars: {{ t('aeditor.chars')|tojson }},
    text_color: {{ t('aeditor.text_color')|tojson }},
    bg_color: {{ t('aeditor.bg_color')|tojson }},
    default_color: {{ t('aeditor.default_color')|tojson }},
    readonly_hint: {{ t('aeditor.readonly_hint')|tojson }},
    ok: {{ t('aeditor.ok')|tojson }},
    cancel: {{ t('aeditor.cancel')|tojson }},
    columns: {{ t('aeditor.columns')|tojson }},
    rows: {{ t('aeditor.rows')|tojson }}
};
</script>
<script src="{{ static_v('js/alioth-editor.js') }}"></script>
