mirror of
https://github.com/fantasticit/think.git
synced 2026-11-01 15:42:58 +08:00
fix: fix edit link
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user