Also, did you realize you can call getElement() on any widget to
obtain the underlying DOM element? It's not always what you're looking
for, but it can be helpful to avoiding having to call getElementById
in your JSNI code.
eg.
native void loadEditor(Object e)/*-{
$wnd.CKEDITOR.replace(e);
}-*/;
...
FlowPanel panel = new FlowPanel();
RootPanel.get().add(panel);
loadEditor(panel.getElement());
~
D.
On Nov 3, 12:29 pm, Prashant <[email protected]> wrote:
> thanks, BTW it works for *"content-block"* in place of *
> document.getElementById("**content-block")*
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---