{% extends admin_config.templates ~ "/base.html" %} {% block title %}{% if file_path %}Edit: {{ file_path }}{% else %}New File{% endif %}{% endblock %} {% set active_page = 'editor' %} {% block head %} {# ── TUI Editor (toast-ui) — WYSIWYG/Markdown editor for content. #} {# ── Guifier — Visual JSON/YAML editor for frontmatter metadata. #} {# Note: Guifier ships as an ES module only — must use type="module" to import. #} {# ── File Icons — file-type icons from Atom File-icons (port for browser). #} {% endblock %} {% block content %}
{# ── Page header with clickable breadcrumbs ── #}
{% if file_path %}

Edit

{% else %}

New File

{% endif %}
{# ── File path input (for new files) ── #} {% if not file_path %}
{% endif %} {# ── Tabbed editor interface ── #}
{# ── Tab navigation ── #}
{# ── Tab content panels ── #}
{# ── File Picker Modal ── #} {% if admin_config._static_dir %} {% endif %} {% endblock %} {% block scripts %} {% endblock %}