HifiPlanet-Website/hifi/assets
Maaxxs d20b963970 Add rich-text formatting and font choice for email templates
Phase 4 of the dashboard roadmap. New RichTextEditor component
(Tiptap 3.31.3, pinned past a mergeAttributes XSS advisory affecting
2.x/older 3.x - GHSA-cp6q-959q-f8rh) replaces the plain textareas for
the customer/owner mail bodies in EmailSettings.jsx: bold, italic,
underline, lists, links, and a font-family dropdown. Font choices are
classic system fonts rather than self-hosted webfonts - most email
clients don't load custom @font-face at all, so system fonts are the
only choice that reliably renders as chosen once delivered.

Existing plain-text templates (including the built-in defaults) are
converted to HTML once on load so line breaks survive the switch.

Security fix that had to go with this: Mailer::render() does a raw
strtr() with no escaping, which was fine while bodies were plain text,
but ContactController now sends these as HTML mail - a customer's
public contact-form message could otherwise inject markup into the
HTML notification mail. New Mailer::renderHtml() escapes each
substituted value before it goes into the (admin-authored, otherwise
unchanged) HTML template; ContactController sets isHTML(true) and an
AltBody plain-text fallback for both the owner notification and
customer confirmation.

Known trade-off: Tiptap adds ~400KB (gzipped ~130KB) to the shared
admin+public JS bundle, since the app has no route-based code-splitting
anywhere yet - flagged for a possible follow-up, not fixed here since
it'd mean restructuring the whole admin bundle, not just this feature.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 01:49:13 +02:00
..
apex-CFy2qup8.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
base-BKOm0Bib.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
bg-dark-DX_vTCv2.png Use the handoff's baked background images for the contact section 2026-07-20 07:24:59 +02:00
bg-light-C_7mxjWZ.png Use the handoff's baked background images for the contact section 2026-07-20 07:24:59 +02:00
clear-DZZMSrMX.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
drive-BE2W1yna.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
elite_r-BRvz_pyr.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-amp-purple-CESAKuOf.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-dash-Cg-7v9qo.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-dash2-CEVCErVK.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-rear-8cIXPC7T.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-speaker-CUXQZ49Q.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-subs-COSd4seJ.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
hero-highlight-Co4f1Kj5.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
hero-trunk-Dp4_JHDh.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
index-1SLMfitC.js Add rich-text formatting and font choice for email templates 2026-09-09 01:49:13 +02:00
index-CKCuneM9.css Add rich-text formatting and font choice for email templates 2026-09-09 01:49:13 +02:00
limitless-DDs0S_PU.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
logo-BNfZDkmN.png Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
logo-dark-R-ckaBhx.png Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
lucide-icons-Cg2IxtAO.js Add rich-text formatting and font choice for email templates 2026-09-09 01:49:13 +02:00
prime-BTVNe2Gb.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
statement-pTO-wTPx.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
youtube-hintergrund-C0osNxn7.mp4 Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00