react-contenteditable
react-contenteditable copied to clipboard
Add isMultiline to <ContentEditable/>
I had a problem and it solved by #150. I think it would be great if the ContentEditable component accepts something like isMultiline and if it's set to false, then some validation happens and tabs or line break doesn't allow anymore.
You could just use onKeyDown and check if event.key is "Enter" and then prevent default