GWT CkEditor加载问题

时间:2012-05-07 05:53:06

标签: gwt

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

1 个答案:

答案 0 :(得分:1)

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

<script type="text/javascript" src="/v4workflow/ckeditor/ckeditor.js?t={timestamp}"></script>