From 632e3c5a0bdeb61adb523515cc8f80f2fac26ef7 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 22 Oct 2023 11:02:03 +0200 Subject: [PATCH] fix(editor): duplicate name for extension --- src/components/input/editor/TipTap.vue | 6 +++--- src/components/input/editor/commands.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/input/editor/TipTap.vue b/src/components/input/editor/TipTap.vue index 4f802d8f9..b33238da4 100644 --- a/src/components/input/editor/TipTap.vue +++ b/src/components/input/editor/TipTap.vue @@ -354,9 +354,9 @@ const editor = useEditor({ nested: true, }), - Commands - .configure({suggestion: suggestionSetup(t)}) - .extend({name: 'slashMenuCommands'}), + Commands.configure({ + suggestion: suggestionSetup(t), + }), BubbleMenu, ], onUpdate: () => { diff --git a/src/components/input/editor/commands.ts b/src/components/input/editor/commands.ts index 4ec039f51..f72de756a 100644 --- a/src/components/input/editor/commands.ts +++ b/src/components/input/editor/commands.ts @@ -4,7 +4,7 @@ import Suggestion from '@tiptap/suggestion' // Copied and adjusted from https://github.com/ueberdosis/tiptap/tree/252acb32d27a0f9af14813eeed83d8a50059a43a/demos/src/Experiments/Commands/Vue export default Extension.create({ - name: 'commands', + name: 'slash-menu-commands', addOptions() { return {