HTML / [removed] Disable HTML CONTENT in contentEditable=true

前端 未结 4 1315
你的背包
你的背包 2021-01-03 11:32

What I want?


I want a div what works like a textarea, I don\'t want to have the ability to edit things in the div, and paste imag

4条回答
  •  生来不讨喜
    2021-01-03 11:43

    You don't have to use a DIV. You can still have a textarea and expand it when necessary.

    Here is a jQuery plugin that does just that: http://plugins.jquery.com/project/TextAreaResizer

    Here is a demo: http://www.itsavesyou.com/TextArea_Resizer_example.htm

提交回复
热议问题