Hi,
I am trying to integrate CKEditor with GWT so I tried following code:
public void onModuleLoad(){
FlowPanel panel = new FlowPanel();
panel.addStyleName("edit-
tools");
panel.add(new Button("Edit", new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
loadEditor();
}
}));
RootPanel.get("content").add(panel);
}
native void loadEditor()/*-{
$wnd.CKEDITOR.replace(document.getElementById("content-block"));
}-*/;
but it didn't work. could anyone point out where i am wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---