Automatic newline in textarea

前端 未结 1 1181
感动是毒
感动是毒 2021-01-24 00:54

Using jQuery, how can I make a textarea that automatically adds a new line when inserting text when the cursor is near the end.

The width of the textarea is dynamically

相关标签:
1条回答
  • 2021-01-24 01:36

    This is a really nasty problem to try and solve. I'd be going down either 1 of 2 pahts. 1 just use the text area as is or 2 using a nice jQuery editor which makes the text look nice.

    0 讨论(0)
提交回复
热议问题