plate icon indicating copy to clipboard operation
plate copied to clipboard

App crashes with error after editing link in a certain rich text

Open eugenet8k opened this issue 3 years ago • 0 comments

Description

In a certain rich text scenario, where a link is inside ul li element, the app crashes with an error:

Cannot get the end point in the node at path [1] because it has no end text node.

Steps

  1. Go to codesandbox demo
  2. Click on "and try plate" link
  3. Type any link http://something.com in the floating link editor
  4. Press Enter

Sandbox

https://codesandbox.io/s/sandpack-project-forked-gljxt3?file=/link/linkValue.tsx

Environment

  • slate: 0.78.0
  • slate-react: 0.79.0
  • browser: chrome

eugenet8k avatar Aug 05 '22 18:08 eugenet8k