{# Email template editor — requires /web/static/dist/mail_editor.js (npm run build:editor). One template serves both edit and display modes. Display (readonly) mode simply hides the help line, tab strip, toolbar, Write/Source mounts and the hidden form input, and the Preview panel is always visible. The Alpine component (pvHtmlEditor) starts on tab='preview' when readonly and auto-renders on init, so the detail page lands on the live record- aware preview without any extra clicks. #}
Write — TipTap.
HTML source — same code editor as Code fields (VSCode theme, Ctrl+Space).
Switch language to Jinja for template syntax highlighting.
Use Insert variable or type {% raw %}{{ object. }}{% endraw %} in source.