Maybe it is possible to do this by using the setHTML() method:

myRichTextArea.setHTML("<span class=\"text-red\">This text is colored
red...</span>");

2008/12/14 luttkens <magnuslyttk...@hotmail.com>

>
> I try to modify the functionallity of the RichTextArea Wdiget. As you
> know it is possible to format text as bold for instance, which wraps
> the selected text with <B>my text</B>.
>
> Is it possible to format text by wrapping my own tags, like: <SPAN
> STYLE="font-size:12px">my text</SPAN>.
> Or is there a way to get cursor position and selection? Then I can use
> setHTML() and getHTML().
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to