Implementing a resizable textarea?

后端 未结 5 2044
深忆病人
深忆病人 2020-12-07 14:44

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

5条回答
  •  失恋的感觉
    2020-12-07 15:13

    StackOverflow uses a jQuery plugin to accomplish this: TextAreaResizer.

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

    Historical note: when this answer was originally written, WMD and TextAreaResizer were two separate plugins, neither one of which was authored by the SO Dev Team (see also: micahwittman's answer). Also, the JavaScript for the site was quite easy to read... None of these are strictly true anymore, but TextAreaResizer still works just fine.

提交回复
热议问题