RichText authored in the admin panel was rendered as plain text on the public site: headings/lists/quotes were flattened by Tailwind preflight (no @tailwindcss/typography installed), and Payload's default JSX converter ignored text colours. - src/lib/lexical: shared editor factory (ptfLexicalEditor) + shared colour palette (textState) + colour converter (richTextConverters) - RichTextView: canonical .lexical-content renderer (colour-aware), swapped into every frontend render site - All rich-text editors route through the factory, so every field inherits the coloured editor (incl. the previously-unedited ones) - .lexical-content CSS extended with checklist/table/heading rules, wrapped in @layer components so per-page utilities still override; dropped the now-dead per-page prose hacks - Remove the now-dead briefingConverters in favour of the shared converter; add tests/int/rich-text-view.int.spec.ts |
||
|---|---|---|
| .. | ||
| editor.ts | ||
| richTextConverters.ts | ||
| text.ts | ||
| textState.ts | ||