From b46f932663631691ae80da384254f0b82dd902eb Mon Sep 17 00:00:00 2001 From: fantasticit Date: Wed, 4 May 2022 19:58:56 +0800 Subject: [PATCH] fix: fix edit link --- packages/client/src/tiptap/editor/menus/link/bubble.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/tiptap/editor/menus/link/bubble.tsx b/packages/client/src/tiptap/editor/menus/link/bubble.tsx index b488b709..7899aae7 100644 --- a/packages/client/src/tiptap/editor/menus/link/bubble.tsx +++ b/packages/client/src/tiptap/editor/menus/link/bubble.tsx @@ -20,8 +20,8 @@ export const LinkBubbleMenu = ({ editor }) => { }, [href, target]); const openEditLinkModal = useCallback(() => { - triggerOpenLinkSettingModal({ href, text, from, to }); - }, [href, text, from, to]); + triggerOpenLinkSettingModal(editor, { href, text, from, to }); + }, [editor, href, text, from, to]); const unsetLink = useCallback(() => editor.chain().extendMarkRange(Link.name).unsetLink().run(), [editor]);