0
I am using GWT-CKEditor in my application. When I am trying to load it, it gives following Exception..

Caused by: com.google.gwt.user.client.ui.AttachDetachException: One or more exceptions caught, see full set in UmbrellaException#getCauses
    at com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:87)
    at com.google.gwt.user.client.ui.Panel.doAttachChildren(Panel.java:170)
    at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:345)
    at com.google.gwt.user.client.ui.AttachDetachException$1.execute(AttachDetachException.java:34)
    at com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:74)
    ... 95 more
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.CKEDITOR is undefined
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
    at com.axeiya.gwtckeditor.client.CKEditor.replaceTextArea(CKEditor.java)
    at com.axeiya.gwtckeditor.client.CKEditor.initInstance(CKEditor.java:178)
    at com.axeiya.gwtckeditor.client.CKEditor.onLoad(CKEditor.java:169)
    at com.google.gwt.user.client.ui.Composite.onAttach(Composite.java:179)
    at com.google.gwt.user.client.ui.AttachDetachException$1.execute(AttachDetachException.java:34)
    at com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:74)
    ... 99 more
4

1 回答 1

1

好吧,我忘了在 html 文件中提供脚本。这就是我们实现这一目标的方法。它的工作..

<script type="text/javascript" src="/v4workflow/ckeditor/ckeditor.js?t={timestamp}"></script>
于 2012-05-08T05:54:47.970 回答