RichTextBox has such dom level hierarchy?
----------------------------------------------------------------
<iframe>
   <html>
      <body>
      </body>
   </html>
</iframe>
---------------------------------------------------------------

I found setting style name to iframe doesn't work,and It must be set to
body element.
I tried to do it like this(in constructor):
----------------------------------------------
     Element body = ((FrameElement)
getElement().cast()).getContentDocument().getBody();
     body.setClassName("richTextArea");
----------------------------------------------

A NullPointerException got thrown out on this boy element,and even I
wrapper them like this:

----------------------------
Scheduler.get().scheduleDeferred(new ScheduledCommand()
{
         @Override
public void execute()
{
             Element body = ((FrameElement)
getElement().cast()).getContentDocument().getBody();
             body.setClassName("richTextArea"); 
}

});

Can anyone give a solution?

-- 
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.

Reply via email to