diff --git a/admin-spa/src/components/ui/rich-text-editor.tsx b/admin-spa/src/components/ui/rich-text-editor.tsx index cb7ff59..4c0bbee 100644 --- a/admin-spa/src/components/ui/rich-text-editor.tsx +++ b/admin-spa/src/components/ui/rich-text-editor.tsx @@ -45,7 +45,11 @@ export function RichTextEditor({ }: RichTextEditorProps) { const editor = useEditor({ extensions: [ - StarterKit, + // StarterKit 3.10+ includes Link by default, so disable it here + // since we configure Link separately below with custom options + StarterKit.configure({ + link: false, + }), Placeholder.configure({ placeholder, }), @@ -123,7 +127,7 @@ export function RichTextEditor({ const addImage = () => { openWPMediaImage((file) => { - editor.chain().focus().setImage({ + editor.chain().focus().setImage({ src: file.url, alt: file.alt || file.title, title: file.title, @@ -328,7 +332,7 @@ export function RichTextEditor({ {__('Add a styled button to your content. Use variables for dynamic links.')} - +