How to set default font family as Verdana in RichTextEditor

21 views
Skip to first unread message

javalover

unread,
Nov 21, 2009, 1:49:40 AM11/21/09
to Google Web Toolkit, madhus...@infobraintech.com
Hi Everyone,

I have used the RichTextEditor given by the GWT ,by default when i
typed the text in it it is "Times New Roman",i want to change that
default to "Verdana".Please give me suggestion where i need to do the
change to make default font family as "Verdana" in RichTextEditor when
i typed in it.

Thanks&Regards,
Madhu

Brendan

unread,
Nov 21, 2009, 5:09:40 AM11/21/09
to Google Web Toolkit
Supporting RichTextEditor across browsers looks like it can get pretty
intense, and the implementations look inherently programmatic (using
execCommand()), so I think your best bet is setFont() on the widget
itself. Maybe someone else can chime in if there is an easy way to do
it in CSS; I couldn't find one.

More about IE/Mozilla implementation details:
https://developer.mozilla.org/en/Rich-Text_Editing_in_Mozilla

Manolo Carrasco Moñino

unread,
Nov 23, 2009, 7:40:13 AM11/23/09
to google-we...@googlegroups.com
I do this:

area.setHTML("<font size='2' style='font-family: arial'>" + html + "</font>");

It's a bit tricky but works.

Regards
Manolo

--

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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.



Reply all
Reply to author
Forward
0 new messages