From 56b8b9d3209dd168783601e4d749ed4ad814618c Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Sun, 6 Sep 2026 05:36:55 -0400 Subject: [PATCH] feat(profile): add code, mark, and horizontal rule nodes to dossier editors Register CodeNode/CodeHighlightNode, MarkNode, and HorizontalRuleNode in the DossierExcerptEditors Lexical config so excerpts can use code blocks with highlighting, inline marks, and divider rules. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/components/frontend/profile/DossierExcerptEditors.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/frontend/profile/DossierExcerptEditors.tsx b/src/components/frontend/profile/DossierExcerptEditors.tsx index 6de7a34..cf54aa2 100644 --- a/src/components/frontend/profile/DossierExcerptEditors.tsx +++ b/src/components/frontend/profile/DossierExcerptEditors.tsx @@ -15,6 +15,9 @@ import { RichTextPlugin } from "@payloadcms/richtext-lexical/lexical/react/Lexic import { HeadingNode, QuoteNode } from "@payloadcms/richtext-lexical/lexical/rich-text"; import { ListItemNode, ListNode } from "@payloadcms/richtext-lexical/lexical/list"; import { AutoLinkNode, LinkNode } from "@payloadcms/richtext-lexical/lexical/link"; +import { MarkNode } from "@payloadcms/richtext-lexical/lexical/mark"; +import { CodeHighlightNode, CodeNode } from "@lexical/code"; +import { HorizontalRuleNode } from "@payloadcms/richtext-lexical/lexical/react/LexicalHorizontalRuleNode"; import { $getRoot } from "@payloadcms/richtext-lexical/lexical"; import type { LexicalEditor } from "@payloadcms/richtext-lexical/lexical"; import { Button } from "@/components/ui/button"; @@ -38,6 +41,10 @@ const EDITOR_NODES = [ ListItemNode, LinkNode, AutoLinkNode, + HorizontalRuleNode, + CodeNode, + CodeHighlightNode, + MarkNode, ]; const EDITOR_CONTENT_CLASSES =