-1

I'm currently developing a RichText Editor with Draft.JS and React.JS and I want to prevent Draft.JS from deleting inserted atomic blocks on backspace, but rather move the cursor into the textarea element of the atomic block.

Is this possible and if it is, how?

K. Tim
  • 3
  • 1

1 Answers1

0

Yes it is posibble. Just handle the backspace key with your code, do whatever changes to editor's content.

https://draftjs.org/docs/advanced-topics-key-bindings/

Jiang YD
  • 3,205
  • 1
  • 14
  • 20