A simple dynamic textarea decorator that just works without jQuery
Just include the script in the page:
It can also be loaded as an AMD module.
data-dynamic attribute to the
textarea elements and they will magically grow to fit the content (even for dynamic added elements!):
The api is exposed only in AMD capable environments to prevent polluting the global scope unnecessarily.
Update the height of all dynamic textareas relative to its content.