textarea
v0.3.0
Published
DOM enhancements for the textarea element, including tabs and auto-expansion
Downloads
3,224
Readme
textarea
One textarea plugin to rule them all.
Ace editor and CodeMirror are over the top. I just want tabs and block indentation.
And auto-expansion to fix the contents (height-wise).
Your <textarea>
should specify min-height
and max-height
, but not height
.
Alternatives
- react-textarea-autosize, demo: apparently only handles newlines, so if your lines wrap, the height will be wrong.
- react-textarea: derived from react-textarea-autosize
- autosize: Looks nice, actually, but used to be jQuery?
- react-autosize-textarea: This one seems to work.
- angular2-autosize: super simple (3 lines of logic!), but works nicely at first glance.
License
Copyright 2013-2016 Christopher Brown. MIT Licensed.