2012-05-07 23 views
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 
+0

CkEditorを初期化するときに何かが見逃されているようです。コードスニペットを –

+0

行ってくださいね。私はそれのためのスクリプトを提供するために逃した。 – PVR

+0

あなたの質問に答えてそれを受け入れることは良い習慣です。 –

答えて

1

まあ、私はこれを達成する方法をhtmlファイルで提供するのを忘れていました。その作業..

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