I wanted it to have the same fontFamiliy (Arial/Helvetica like) as the
whole document.
if richtext is the RichTextArea I found this to work in Firefox.
richtext.addInitializeHandler(new InitializeHandler() {
public void onInitialize(InitializeEvent ie) {
IFrameElement fe = (IFrameElement)
richtext.getElement().cast();
Style s = fe.getContentDocument().getBody().getStyle();
s.setProperty("fontFamily", "Arial Unicode
MS,Arial,sans-
serif");
}
});
This probably is not compatible with other brothers who dont use a
iframe (but these should take CSS nevertheless). I currently have not
yet the energy to check all browser quirks.
I got another problem tough. richtext.addMouseWheelHandler(myHandler)
will not raise any events!
On 6 Jun., 17:02, Stefan Bachert <[email protected]> wrote:
> Hi Axel,
>
> what are you going to do?
>
> It is not likely to set a font-size to size X while css set it to Y.
> You probably have to change the RichTextFormatter.
>
> Stefan Bacherthttp://gwtworld.de
>
> On 5 Jun., 17:31, Axel Kittenberger <[email protected]> wrote:
>
> > Dear Group,
>
> > Did I oversee something? How can I specify the content CSS of a
> > RichTextArea (which is a iframe on Mozillas). E.g. the GWT default
> > Theme sets font-family to "Arial Unicode MS,Arial,sans-serif" while in
> > my RichTextArea I got a browsers defaults Times New Roman serif font.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.