fix(rnotes): register comment and suggestion marks in legacy editor

The CommentMark, SuggestionInsertMark, and SuggestionDeleteMark extensions
were only registered in the collab (Yjs) editor, causing "no mark type
named 'comment'" crash when adding comments in demo/legacy mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-24 17:24:56 -07:00
parent e8379541cc
commit 3a222e2ddc
1 changed files with 3 additions and 0 deletions

View File

@ -1383,6 +1383,9 @@ Gear: EUR 400 (10%)</code></pre><p><em>Maya is tracking expenses in rF
Image, TaskList, TaskItem.configure({ nested: true }),
Placeholder.configure({ placeholder: 'Start writing, or type / for commands...' }),
CodeBlockLowlight.configure({ lowlight }), Typography, Underline,
CommentMark,
SuggestionInsertMark,
SuggestionDeleteMark,
],
content,
onUpdate: ({ editor }) => {