Tuesday, September 7, 2010

Adding headings to a RichTextArea

Hi,

I have this problem that is nearly driving me crazy.
We need a RichTextEditor that will give us some basic functionality
like the RichTextArea combined with the RichTextToolbar from the
examples give us. But we have one requirement that is not met by the
example, and that is the possibility to add headings (H1, H2, ...)
Just adding the tags could easily be done using the insertHTML
functionality, but that would not make it possible to resemble the
normal behaviour of an editor that would enclose the current paragraph
inside the heading, whilst just adding the tags would split the text.

Any ideas on how to do this?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment