Skip to content

Repository files navigation

Important!

This repository was created to workaround a know bug of autosize plugin on iOS 11 as reported on the original repository.

A workaround for this bug appeared in a fork of autosize project:

To avoid third part changes, this fork was created for ISAO internal use. And should be abandoned when autosize implements the fix on future versions.

Summary

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

Demo

Full documentation and a demo can be found at jacklmoore.com/autosize

Install via NPM

npm install autosize

Browser compatibility

ChromeFirefoxIESafariiOS SafariAndroidOpera MiniWindows Phone IE
yesyes9yesyes4?8.1

Usage

The autosize function accepts a single textarea element, or an array or array-like object (such as a NodeList or jQuery collection) of textarea elements.

// from a NodeListautosize(document.querySelectorAll('textarea'));// from a single Nodeautosize(document.querySelector('textarea'));// from a jQuery collectionautosize($('textarea'));

Released under the MIT License

About

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.

Topics

Resources

Stars

0 stars

Watchers

19 watching

Forks

Releases

Packages

Contributors

Languages