Is there a way to restrict the editor to a single-line input? Much like input
vs. textarea
.
There's no officially supported way. You could use the keyboard API to ignore enters, but there are other ways to introduce new lines, such as pasting. Feel free to submit a feature request and if there is enough interest it may be added in the future.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With