Prevent line breaks after certain number of lines in a text area or contenteditable div
I want to create a text area
or contenteditable div
(preferably a text area
) that has a max number of lines where, when hitting the max line, no new line breaks are added and all new text is hidden (but still exists).