Skip to content

Commit fc95ea3

Browse files
authoredJan 6, 2024
Revert "Inserting hyperlink through toolbar doesn't open floating editor in edit mode (#5372)"
This reverts commit 9d247ac.
1 parent 4038fd7 commit fc95ea3

File tree

1 file changed

+0
-2
lines changed
  • packages/lexical-playground/src/plugins/ToolbarPlugin

1 file changed

+0
-2
lines changed
 

‎packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -797,10 +797,8 @@ export default function ToolbarPlugin({
797797

798798
const insertLink = useCallback(() => {
799799
if (!isLink) {
800-
setIsLinkEditMode(true);
801800
editor.dispatchCommand(TOGGLE_LINK_COMMAND, sanitizeUrl('https://'));
802801
} else {
803-
setIsLinkEditMode(false);
804802
editor.dispatchCommand(TOGGLE_LINK_COMMAND, null);
805803
}
806804
}, [editor, isLink]);

0 commit comments

Comments
 (0)