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

Add isMultiline to <ContentEditable/>

Open theMasix opened this issue 4 years ago • 1 comments

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.

theMasix avatar May 22 '20 12:05 theMasix

You could just use onKeyDown and check if event.key is "Enter" and then prevent default

Here is a link to the sandbox

joseDaKing avatar Oct 20 '21 16:10 joseDaKing