Skip to content

feat: add rich text editor integration for global variables & shortcodes plugins#780

Open
lane711 wants to merge 3 commits intomainfrom
merge-pr-757-rich-text-editor-plugins
Open

feat: add rich text editor integration for global variables & shortcodes plugins#780
lane711 wants to merge 3 commits intomainfrom
merge-pr-757-rich-text-editor-plugins

Conversation

@lane711
Copy link
Copy Markdown
Collaborator

@lane711 lane711 commented Apr 9, 2026

Summary

Cherry-picked from #757 by @cp-bwg

  • Enhanced global-variables-plugin with full CRUD admin page, Quill variable blots (blue chips), TinyMCE toolbar button, and editor integration toggle
  • New shortcodes-plugin with [[shortcode_name param="value"]] syntax, handler registry, CRUD admin with live preview, Quill shortcode blots (purple chips), and TinyMCE integration
  • Shared editor utilities for Quill (constructor Proxy, searchable picker, enhancer poller) and TinyMCE (PluginManager approach, chip CSS injection)
  • Content resolution: variables (priority 50) then shortcodes (priority 60)

Attribution

Changes by Maintainer

  • Fixed PluginBuilder import paths (../../sdk/ not ../../../sdk/)
  • Added non-null assertions for regex match groups in shortcode-resolver.ts
  • Added non-null assertions for array indexing in date formatting

Testing

  • Unit tests pass locally (1440 tests, 0 regressions)
  • TypeScript compiles cleanly

Checklist

  • Code follows project conventions
  • No new TypeScript errors introduced
  • Original authorship preserved via cherry-pick

Closes #757

🤖 Generated with Claude Code

Conductor and others added 3 commits April 9, 2026 14:28
…des plugins (#756)

Implements Part 2 (Rich Text Inline Tokens) from #719:

- Enhanced global-variables-plugin with full CRUD admin page, Quill blots
  (blue chips), TinyMCE PluginManager integration, and editor toggle
- New shortcodes-plugin with [[shortcode]] syntax, handler registry,
  CRUD admin, live preview, Quill blots (purple chips), and TinyMCE support
- Shared editor utilities: Quill constructor Proxy, searchable picker
  dropdown, TinyMCE PluginManager approach, admin HTML template
- Content resolution: variables (priority 50) → shortcodes (priority 60)
- 5 built-in shortcode handlers: current_date, phone_link, cta_button,
  plan_count, provider_rating

Closes #719
Extends #743

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix import paths for PluginBuilder (../../sdk/ not ../../../sdk/)
- Add non-null assertions for regex match groups in shortcode-resolver
- Add non-null assertions for array indexing in date formatting

Co-Authored-By: brad <brad@comparepower.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants