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

Shadow DOM example is not working correctly #5321

Open safiaZihmou opened 1 year ago

safiaZihmou commented 1 year ago

Description Shadow dom example is not working properly. https://www.slatejs.org/examples/shadow-dom

Recording slate_example_issue

Sandbox https://www.slatejs.org/examples/shadow-dom

Steps To reproduce the behavior:

  1. Go to: https://www.slatejs.org/examples/shadow-dom
  2. Try adding text at the beginning (we can only add 1 letter)
  3. Try adding "Space" within the text (no space added)
  4. Try to modify the text. (the text is not modified)
  5. Try changing the text at the end (the text is deleted and the Slate example is broken)

Expectation We can modify, change text

Environment

NikolajHoggins commented 1 year ago

slate

Seemingly all I need to do to make it break is add a space and then a dot. " ." and it will break.

In the last example of the recording i add " f f f ." and it breaks on the "." again

caycecollins commented 10 months ago

Seemingly all I need to do to make it break is add a space and then a dot. " ." and it will break.

In the last example of the recording i add " f f f ." and it breaks on the "." again

I noticed the same thing, but with any number or special character after a space.

Additionally, quickly typing "asdf" repeatedly will cause the same behavior.

A6Brgeuka commented 1 week ago

is there any progress here? 👀