How to integrate CKEditor in GWT

后端 未结 4 912
挽巷
挽巷 2021-01-13 12:35

I\'m looking for a way to integrate CKEditor in my GWT project.

I\'ve made some googling and found this project: https://code.google.com/p/gwt-ckeditor/ which has be

4条回答
  •  梦谈多话
    2021-01-13 13:21

    I'd also suggest ScriptInjector as it gives you a callback that the script has finally loaded and everything's fine.

    Thereafter you have to use $wnd to address CKEDITOR properly and replace the textarea in native code:

      private native void initCKEditor(String id) /*-{
        this.@com.google.editor.CKeditor::editor =  $wnd.CKEDITOR.replace( id );
      }-*/;
    

提交回复
热议问题