react-contenteditable icon indicating copy to clipboard operation
react-contenteditable copied to clipboard

Additional states "events", "caret", "typing", "plaintext-only"

Open dinukadesilva opened this issue 6 years ago • 2 comments

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?

dinukadesilva avatar Mar 31 '18 17:03 dinukadesilva

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

mmathys avatar Apr 03 '18 20:04 mmathys

By the way, events like onClick, onFocus, onBlur would also be useful

mmathys avatar Apr 03 '18 20:04 mmathys