We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd560b commit 6879142Copy full SHA for 6879142
src/extensions/Link/components/LinkEditBlock.tsx
@@ -32,6 +32,9 @@ function LinkEditBlock(props: IPropsLinkEditBlock) {
32
const LinkOptions = props.editor.extensionManager.extensions.find(
33
(ext: any) => ext.name === Link.name,
34
)?.options;
35
+ const { from, to } = props.editor.state.selection;
36
+ const text = props.editor.state.doc.textBetween(from, to, " ");
37
+ setForm({ link: "", text });
38
setOpenInNewTab(LinkOptions?.HTMLAttributes?.target === '_blank');
39
}
40
};
0 commit comments