fix: resolve tiptap duplicate Link extension warning
StarterKit 3.10+ now includes Link by default. Our code was adding
Link.configure() separately, causing duplicate extension warning and
breaking the email builder visual editor modal.
Fixed by configuring StarterKit with { link: false } so our custom
Link.configure() with specific options is the only Link extension.
This commit is contained in:
@@ -45,7 +45,11 @@ export function RichTextEditor({
|
|||||||
}: RichTextEditorProps) {
|
}: RichTextEditorProps) {
|
||||||
const editor = useEditor({
|
const editor = useEditor({
|
||||||
extensions: [
|
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.configure({
|
||||||
placeholder,
|
placeholder,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user