ianstormtaylor / slate

A completely customizable framework for building rich text editors. (Currently in beta.)
http://slatejs.org
MIT License
29.29k stars 3.21k forks source link

If you press enter after link next paragraph will contain link with empty text. #4334

Open ElizavetaKoroleva opened 3 years ago

ElizavetaKoroleva commented 3 years ago

Description If you press enter after link next paragraph will contain link with empty text.

Recording https://user-images.githubusercontent.com/43936760/121493720-c468ec80-c9e0-11eb-93a9-5e7588bf6461.mp4

Sandbox https://www.slatejs.org/examples/links

Steps To reproduce the behavior:

  1. Go to https://www.slatejs.org/examples/links
  2. Set caret after link
  3. Press enter
  4. See devtools

Expectation New paragraph doesn't contain empty link/

Environment

Aagam-Jain-113 commented 2 years ago

Hey @ElizavetaKoroleva ! I am facing a similar issue now. Did you find a solution to this or did you find a different all the way together?

CarlosBalladares commented 2 months ago

any updates on this? Im rendering text in my site and when i tab through the page, these empty links get highlighted. If you go to the last line of the inlines example, where there's a link, and you press ENTER, BACKSPACE repeatedly you can inspect the empty links