Skip to content

Commit

Permalink
Revert "Inserting hyperlink through toolbar doesn't open floating edi…
Browse files Browse the repository at this point in the history
…tor in edit mode (#5372)"

This reverts commit 9d247ac.
  • Loading branch information
acywatson committed Jan 6, 2024
1 parent 4038fd7 commit fc95ea3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -797,10 +797,8 @@ export default function ToolbarPlugin({

const insertLink = useCallback(() => {
if (!isLink) {
setIsLinkEditMode(true);
editor.dispatchCommand(TOGGLE_LINK_COMMAND, sanitizeUrl('https://'));
} else {
setIsLinkEditMode(false);
editor.dispatchCommand(TOGGLE_LINK_COMMAND, null);
}
}, [editor, isLink]);
Expand Down

0 comments on commit fc95ea3

Please sign in to comment.