Class: Events::EmailTemplateBodyV4Changed

Inherits:
ApplicationEvent
  • Object
show all
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: }

Method Summary

Methods inherited from ApplicationEvent

#data