Closed jerrybuks closed 4 years ago
Calling this line in withLinks
is erroring because there is no parent:
isSelectionLink = editor => Node.parent(editor, editor.selection.focus.path).type === 'link';
This is stemming from onChange
:
if (selection && isSelectionLinkBody(editor)) { setShowLinkModal(true); }
There seems to be a need to check in onChange
to see if the editor is in focus? Trying to put try/catch
in isSelectionLink
kicks the issue down the road to the next function that's called and has the same issue.
Describe the bug undoing multiple times breaks the editor.
To Reproduce Steps to reproduce the behavior:
Desktop