- Issue created by @jwilson3
That's a good shout.
I think given the way it currently works, we should move away from using a text editor for this, and just have a plain text area with the required markup similar to how Drupal core handles user registration email templates.
- 🇪🇨Ecuador jwilson3
Completely agree with @codebymikey in #3. There is little benefit to using a wysiwyg formatter here, especially since CKEditor 5 is known to modify HTML it believes to be "incorrect" (even when it is not technically incorrect). CKEditor 5 won't check validity of Twig, only HTML validity and structure, so at best CKE is a partial solution to the equation anyway. The onus should be on a developer to ensure proper HTML structure (eg properly nested and closed tags, etc) just like everywhere else.
Updated issue summary with Proposed Solution.