Is it possible to insert a newline (\n) whenever a textarea wraps in JavaScript? So basically, if there is an overflow, a newline separator should be inserted automatically.
And how would you do it? I need to insert explicit \n symbols. Just wrapping the text won’t work.
If you are not submitting to a server then you need to splice the newlines in manually. Check out this Fiddle using jQuery. You could probably reduce the example down to straight JS easily enough if you don’t want to use jQuery.