My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
DemoGWTTextBoxExpander  
Text box expansion
Updated Nov 5, 2011 by branflak...@gmail.com

Updated 10/22/2011

I have made this better. Try out the demo - Demo

Auto Text Box Growth or Expansion

TextBox and TextArea auto expand dynamically changing size during typing into the inputs. Grow the textbox as one types.

Cloning CSS and Calculating Size

The challenge is to clone the css from the textbox to a html span and figure out the size and then set it back to the textbox. A textbox is easy to change the size, but the TextArea I have found more difficult because there are more variables to deal with.

RichTextArea

Couple things I like to note for RichTextArea
  • I've added paste intercepting. This way pasting doesn't add any formatting. Although, firefox/mozilla doesn't like you digging into the clipboard api.
  • ClipBoard Api Source Directory - My clipboard api cross browser impl. (well...sorta)
  • RichTextArea Source Directory - Hacking RichTextArea to work with paste and double clicking.


Sign in to add a comment
Powered by Google Project Hosting