Skip to content

feat: add HTML source view toggle to template editor (#184)#185

Merged
JuliaKalder merged 1 commit into
mainfrom
fix/issue-184
May 17, 2026
Merged

feat: add HTML source view toggle to template editor (#184)#185
JuliaKalder merged 1 commit into
mainfrom
fix/issue-184

Conversation

@JuliaKalder

Copy link
Copy Markdown
Owner

Summary

Adds an HTML/Visual toggle button to the template body editor in the options page, allowing power users to edit raw HTML directly without the JSON export/import workaround.

Changes

  • Added toggle button (HTML / Visual) near the template body field in the editor toolbar
  • HTML view shows a <textarea> with raw HTML content (monospace font)
  • Switching back to Visual restores the rich editor content (round-trip safe)
  • Formatting toolbar buttons are disabled while in HTML view to avoid conflicts
  • Editor state (view mode) resets when opening, duplicating, or closing a template
  • No new dependencies added

Testing

  • Verified toggle switches between editor modes
  • Verified content round-trips correctly (HTML → Visual → HTML)
  • All 96 existing tests pass

Fixes #184

Adds a toggle button (HTML/Visual) to the template body editor in the
options page. Switching to HTML view shows a textarea with raw HTML;
switching back to Visual restores the rich editor content round-trip safe.

Fixes #184
@JuliaKalder
JuliaKalder merged commit 0f04d82 into main May 17, 2026
1 check passed
@JuliaKalder
JuliaKalder deleted the fix/issue-184 branch May 17, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add HTML source view to template editor

1 participant