Searching for the Ultimate Resizing Textarea

前端 未结 6 1170
余生分开走
余生分开走 2020-12-24 14:27

I\'m wanting to provide a resizing textarea control for users. I\'ve given this a go and looked at a number of other implementations, but I can\'t seem to find one that meet

相关标签:
6条回答
  • 2020-12-24 14:57

    I have been using nicEdit. It seems to have all that you need and the script is only 1700 lines with an MIT license so you could make any changes you need.

    0 讨论(0)
  • 2020-12-24 15:03

    Are any of these useful?

    Textarea Resize JavaScript: Resize textarea using jQuery plugin

    Smart Area: A Lightweight Resizing Text Area Plugin for jQuery

    How to Build an Auto-Expanding Textarea jQuery Plugin, Part 1

    How to Build an Auto-Expanding Textarea jQuery Plugin, Part 2

    How to Build an Auto-Expanding Textarea jQuery Plugin, Part 3

    Resizable Body

    0 讨论(0)
  • 2020-12-24 15:06

    You may need to roll your own to meet those requirements.

    These could be a start.

    http://tuckey.org/textareasizer/ (though try and avoid eval() in yours)

    http://www.felgall.com/jstip45.htm

    http://viralpatel.net/blogs/2009/06/textarea-resize-javascript-jquery-plugin-resize-textarea-html.html

    This actually seems like a good jQuery plugin. I might have a tackle at developing something like this. If I get it done, I'll post it here.

    I spent a few hours developing something, but then I found this one that seems to be really good.

    http://www.aclevercookie.com/demos/autogrow_textarea.html

    0 讨论(0)
  • 2020-12-24 15:09

    Check out DOJO tools text area control

    see more on this demo page (text area At the end of the form )

    This closely come to your requirements.

    0 讨论(0)
  • 2020-12-24 15:09

    This A List Apart post contains an implementation that looks pretty close to meeting your criteria and contains a good explanation of what's going on.

    0 讨论(0)
  • 2020-12-24 15:15

    You want to auto-size the display? but leave the content the same?

    That is all the scripts can do, adjust the display, and let you see more of your own text...

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