mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
docs: correct the highlightWithCustomColor js example
This commit is contained in:
@@ -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),
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user