michaelyah / gwt-ckeditor

Automatically exported from code.google.com/p/gwt-ckeditor
0 stars 0 forks source link

access to rich text area #31

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
accessing to editor's RichTextArea from GWT environment for adding optional 
setting

Original issue reported on code.google.com by mhmhka...@gmail.com on 13 Dec 2010 at 7:39

GoogleCodeExporter commented 8 years ago
This is actually easy to do.  Here's a helper class I use to do it:

    private native JavaScriptObject getEditorObject(CKEditor ckEditor) /*-{
        return ckEditor.@com.axeiya.gwtckeditor.client.CKEditor::editor;
    }-*/;

This will give you back the native editor object so you can pass it to another 
native javascript call and do what you need.

Original comment by dpar...@gmail.com on 4 Jan 2013 at 7:31