wekan/packages/meteor-autosize
2024-09-24 07:22:22 +03:00
..
img Losslessly optimize PNGs (-522KB) 2024-05-06 11:12:54 +02:00
lib updated meteor-autosize to version 5.0.1 2021-10-25 09:00:36 +02:00
LICENSE Adding verron:autosize (meteor-autoresize) 2021-10-25 09:00:36 +02:00
package.js Testing packages without versions from 2024-09-24 07:22:22 +03:00
README.md Adding verron:autosize (meteor-autoresize) 2021-10-25 09:00:36 +02:00

meteor-autosize

Ever wondered how to make autoresizable Facebook-style textarea inputs? Autosize is a small, stand-alone script to automatically adjust (resize) textarea height to fit text. Repackaged for Meteor.

screenshot1 screenshot2

Installation

meteor add verron:autosize

Example

// from a NodeList
autosize(document.querySelectorAll('textarea'));

// from a single Node
autosize(document.querySelector('textarea'));

// from a jQuery collection
autosize($('textarea'));

Browser compatibility

Chrome Firefox IE Safari iOS Safari Android Opera Mini Windows Phone IE
yes yes 9 yes yes 4 ? 8.1

Documentation and Demo

http://www.jacklmoore.com/autosize/

Original package

https://github.com/jackmoore/autosize/

Author

The Meteor repackage was created by Spendflow, updated by Kelly Copley (@copleykj) for the new 0.9.0 packaging system and updated to v3 (pure javascript version) by Ronen Verdi (@v3rron).