fix: fix edit link

pull/40/head
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]);
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]);