bmcmahen / react-wysiwyg

retain some control over contenteditable input
169 stars 37 forks source link

Support for Enter key and Esc key handlers #4

Closed nadeesha closed 9 years ago

nadeesha commented 9 years ago

I had to implement this for a project that needed inline editing. You get to define to handler functions to be triggered when a user presses enter and escape. Usually, to confirm the edit, or to cancel it.

bmcmahen commented 9 years ago

Thanks!