Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restrict a Quill editor to a single-line input?

Tags:

quill

Is there a way to restrict the editor to a single-line input? Much like input vs. textarea.

like image 682
aehlke Avatar asked Oct 16 '25 15:10

aehlke


1 Answers

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.

like image 103
jhchen Avatar answered Oct 19 '25 03:10

jhchen