docs: correct the highlightWithCustomColor js example

This commit is contained in:
Ashley Shenton
2025-09-05 11:55:04 +01:00
parent 361ddce1d0
commit 12ef2f289f
+1 -1
View File
@@ -607,7 +607,7 @@ class HighlightRichContentPlugin implements RichContentPlugin
->jsHandler('$getEditor()?.chain().focus().toggleHighlight().run()')
->icon(Heroicon::CursorArrowRays),
RichEditorTool::make('highlightWithCustomColor')
->action(arguments: '{ color: $getEditor().getAttributes(\'mark\')?.data-color }')
->action(arguments: '{ color: $getEditor().getAttributes(\'highlight\')?.[\'data-color\'] }')
->icon(Heroicon::CursorArrowRipple),
];
}