ianstormtaylor / slate

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

When selecting the whole line the editor throws on any input key press. #1391

Closed czechdave closed 6 years ago

czechdave commented 6 years ago

Do you want to request a feature or report a bug?

BUG

What's the current behavior?

Go to http://slatejs.org/#/rich-text Triple click on the first line to select the whole line. Press any letter key. Nothing happens. The console throws an error: Uncaught Error: Could not find a node with key "3".

https://monosnap.com/file/grOvTJAnUNOEFatgoobbVd6NBGMxhB

What's the expected behavior?

The selected text to be replaced by the letter that got pressed.

kashifimran commented 6 years ago

This is a duplicate of https://github.com/ianstormtaylor/slate/issues/1189