Limiting text length in rich text area widget

569 views
Skip to first unread message

falcon_whiz

unread,
Jan 4, 2009, 2:44:33 AM1/4/09
to Google Web Toolkit
Hi,
I want to limit the text length inside the rich text area widget
provided by GWT. But there is no implementation of a method like
maxLength in this widget. I have tried implementing it using substring
inside keyboardlistener but the problem is that I lose all the HTML
formatting. Can anybody suggest a possible workaround.

Regards
Yasser

Arthur Kalmenson

unread,
Jan 6, 2009, 9:40:04 AM1/6/09
to Google-We...@googlegroups.com
Try adding a KeyboardListener that grabs the text (not HTML formatted
text), checks its length and disables keyboard entry if it's over a
certain amount.

--
Arthur Kalmenson
Reply all
Reply to author
Forward
0 new messages