I'm trying to get access to the inner document of a rich text editor.
However, whenever I try, I get bizarre errors; it appears to be giving
me bogus JavascriptObjects.
For example:
Element e = richtext.getElement();
String s = e.getTagName();
assert s.equals("IFRAME") /* passes */
IFrameElement ife = IFrameElement.as(e);
Document subdoc = ife.getContentDocument();
The last line throws the following exception:
java.lang.RuntimeException: Failed to invoke native method:
@com.google.gwt.dom.client.IFrameElement::getContentDocument() with 0
arguments.
Does anyone know what's going on here? It can't be a domain security
issue, because the RichTextArea needs to be able to access the inner
document in order to be able to manipulate the text. How can it do it
and I can't?
--
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "They laughed at Newton. They laughed at Einstein. Of course, they
│ also laughed at Bozo the Clown." --- Carl Sagan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---