The current editor for the 4 system templates (Invoice / Sale Agreement / Odometer / Title Transfer) only exposes 3 raw HTML textareas. That doesn't match how the React renderers actually work — most of the document is structural, but some parts are real copy slots. What scope should the editor have?
Each template declares its editable zones in code. Editor surfaces ONLY those zones, with the right input type for each (single-line text, multi-line text, or rich-text editor for prose blocks). Structural items (header band layout, parties section, items table, payment block, footer chrome) are not editable because they're driven by data — that data comes from Company Profile, Order, and Listing.
Shown in the band of the PDF — what this document is called.
Logo, company name, address, registry numbers — driven by /admin/company-profile. Change them there.
"What's included with your purchase" block on the invoice. Use bullet list.
Legal fine print at the bottom of the invoice page.
Parties section, line items, payment block, totals card — all driven by Order data + Payment Method. Cannot edit here.
Same as A, but each template also gets its own optional logo upload and color overrides (band color, accent color). Falls back to Company Profile defaults when blank. Useful if you want, e.g., a different color for invoices vs contracts.
Optional overrides — leave blank to use Company Profile defaults.
Keep the 3 textareas (Body HTML / Footer HTML / Terms HTML) but upgrade them to a code-style editor (Monaco / CodeMirror) with HTML syntax highlighting. No structural changes.