fix: fix edit link

This commit is contained in:
fantasticit 2022-05-04 19:58:56 +08:00
parent 07434076e4
commit b46f932663
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ export const LinkBubbleMenu = ({ editor }) => {
}, [href, target]); }, [href, target]);
const openEditLinkModal = useCallback(() => { const openEditLinkModal = useCallback(() => {
triggerOpenLinkSettingModal({ href, text, from, to }); triggerOpenLinkSettingModal(editor, { href, text, from, to });
}, [href, text, from, to]); }, [editor, href, text, from, to]);
const unsetLink = useCallback(() => editor.chain().extendMarkRange(Link.name).unsetLink().run(), [editor]); const unsetLink = useCallback(() => editor.chain().extendMarkRange(Link.name).unsetLink().run(), [editor]);