Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

Auto growing textareas update


This is a minor update to the "Auto growing textareas" project by chrysb. The project has not been updated since January 12, 2008, and had some issues that needed to be resolved. I solved these issues for my own use and figured it would be best to share them.

The fixes relate mainly to using autogrow with existing content (i.e. for forms to edit existing content), which was not handled.

The following fixes have been applied:

  1. Handle textareas generated with existing content (i.e. for edit content forms).
  2. Add expandTolerance member variable and option to allow the textarea to autogrow before the current line reaches the bottom of the textarea for increased readability.
  3. Uses isNaN instead of == NaN.
  4. Hides and shows the dummy area. With long content in the textarea it would add padding to the page body.
  5. Fixed line feed replace for br with xml-valid br/ tag

Downloads



4.5
Your rating: None Average: 4.5 (2 votes)