react-contenteditable
react-contenteditable copied to clipboard
Additional states "events", "caret", "typing", "plaintext-only"
https://w3c.github.io/editing/contentEditable.html#h-contenteditable
According to the current implementation, how about enabling these via props. For now, only the disabled prop is there to toggle between "true" and "false" states. So, I was just wondering how about having the other states too as props
Any thoughts?
good PR, but it's much cleaner to put all of these elements in a the single array on L46.. You can avoid all if statements this way
By the way, events like onClick
, onFocus
, onBlur
would also be useful