Class: Events::EmailTemplateBodyV4Changed
- Inherits:
-
ApplicationEvent
- Object
- RubyEventStore::Event
- ApplicationEvent
- Events::EmailTemplateBodyV4Changed
- Defined in:
- app/events/events.rb
Overview
Published by EmailTemplate after_commit when a Redactor-4 template's body_v4
(editor-semantic source) changed and its body_v4_email (the email-ready HTML)
is now blank — i.e. it needs the getEmail() render. The async handler drives a
headless Playwright browser through the real Redactor email plugin to produce
body_v4_email, so a Sunny-authored draft becomes send-ready automatically with
no human opening the CRM editor. data: { email_template_id: }