This project has moved and is read-only. For the latest updates, please go here.

How can I make the textarea/jHtmlArea auto-expand as content fills the box?

Mar 30, 2011 at 2:38 PM

How can I make the textarea/jHtmlArea auto-expand as content fills the box?

A demo of what I am talking about is here.          http://brandonaaron.net/code/expandable/demos

In the example given in the hyperlink, the textarea's content expands beyond what is shown, the textarea itself expands?

Mar 30, 2011 at 4:14 PM

Since jHtmlArea uses an iFrame you can't add the textarea specific jQuery expandable method. You would have to write a jHtmlArea specific one yourself i guess.

The only possible approach i could think of is using the hidden texatea element where jHtmlArea stores the Content, give that the expandable option and than build a listener that copys it's height/width attributes to the iFrame box of jHtmlArea.

Good luck and pleaee post any results you have.

Mar 11, 2012 at 3:56 PM

Did anyone find or implement a solution for this? Would appreciate someone sharing code.

Thank you

Abhi