views:

7063

answers:

3

How does Stackoverflow implement the resizable textarea?

Is that something they rolled themselves or is it a publicly available component that I can easily attach to textareas on my sites?

I found this question and it doesn't quite do what I want.

autosizing-textarea

That talks more about automatically resizing textareas whereas I want the little grab-area that you can drag up and down.

+4  A: 
micahwittman
Um... no, it isn't.
Shog9
Shog9 is right on. This isn't in the WMD editor at all.
Mark Biek
Nice edit. I removed my downvote.
Mark Biek
+4  A: 

I needed a similar functionality recently. Its called Autogrow and it is a Plugin of the amazing jQuery library

knight_killer
This one beats all others I have tried! Highly recommended!
Nat Ryall
It seems that link to autogrow is broken. Correct one is: http://plugins.jquery.com/project/autogrowtextarea
dpavlin
This one's doing good.
San
I like http://plugins.jquery.com/project/textareaexpander. It uses a different approach to resize, but I think it makes more sense. Also, I wrote pretty much exactly the same thing before I noticed that it already existed.
David Johnstone
+12  A: 

StackOverflow uses a jQuery plugin to accomplish this: TextAreaResizer.

It's easy enough to verify this - just pull the JS files from the site.

BTW: there was some discussion of this feature on UserVoice prior to its implementation on the site.

Shog9
Interesting. I wonder if there's a Prototype equivalent.
Mark Biek
Just in case someone wonders that too: http://scottmoonen.com/2008/07/08/unobtrusive-javascript-expandable-textareas/
mplungjan
Unfortunately, the link to UserVoice is dead (since SO doesn't use it anymore). It would be interesting to see the discussion to see what people thought about it (manual resize vs. auto resize).
David Johnstone