Thursday, December 27, 2012

java gwt richtextarea

Is it possible to change the default font-family 'times new roman' of the richtextarea to 'arial'?

I already tried doing

richtextarea.addInitializeHandler(new InitializeHandler() {
public void onInitialize(InitializeEvent event) {
IFrameElement i =;
Document document = i.getContentDocument();
BodyElement body = document.getBody();
body.setAttribute("style", "font-family: Arial Black;");

but I get an 'umbrellaexception' in the line 'Document document = i.getContentDocument();' ...

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment