We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4038fd7 commit fc95ea3Copy full SHA for fc95ea3
packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx
@@ -797,10 +797,8 @@ export default function ToolbarPlugin({
797
798
const insertLink = useCallback(() => {
799
if (!isLink) {
800
- setIsLinkEditMode(true);
801
editor.dispatchCommand(TOGGLE_LINK_COMMAND, sanitizeUrl('https://'));
802
} else {
803
- setIsLinkEditMode(false);
804
editor.dispatchCommand(TOGGLE_LINK_COMMAND, null);
805
}
806
}, [editor, isLink]);
0 commit comments