jpuri / react-draft-wysiwyg

A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg
MIT License
6.42k stars 1.16k forks source link

Backspace on the very next line after inserted image row error issue #516

Open dongkibravo opened 7 years ago

dongkibravo commented 7 years ago

When I inserted an image using imageCallback and say write a sentence the next line (below the image).

And when I delete the text line below the image fully and hit backspace one more time, it doesn't delete the image right away but requires two more backspaces. Going back to the deleting the text and hit backspace once (image is not deleted), and try to write something on the same line, the texteditor freezes.

This happens on the demo page (https://jpuri.github.io/react-draft-wysiwyg/#/demo) too.

willbuckingham commented 7 years ago

partially duplicates #509

jpuri commented 7 years ago

This seems to be DraftJS issue, I will check this.