atulmore777 / gwt-html-editor

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

can't inert text ( memory unload ) #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
sorry I can't write english well..

I use tiny mce editor.  

if you can't insert text or not focus you must add below source code.

( source code ->
http://code.google.com/p/gwt-html-
editor/source/browse/branches/gwt1.4/src/com/gc/gwt/wysiwyg/client/tinymce/
TinyMCE.java?r=90
)

public void unload() {
            unloadMCE(editorId);
        }

        /**
         * unloadMCE() -
         *
         * @param id - The element's ID
         * JSNI method to implement unloading the MCE editor instance 
from memory
         */
        protected native void unloadMCE(String id) /*-{
            $wnd.tinyMCE.execCommand('mceRemoveControl', false, id);
        }-*/;

how to use.

if  close tiny mce editor
you must call unload method...

closeButton.addClickListener(new ClickListener() {
   public void onClick(Widget sender) {
       tinyMceditor.unload();
       closePopup();... etc.
}

Original issue reported on code.google.com by aquu...@gmail.com on 6 Oct 2008 at 1:45

GoogleCodeExporter commented 9 years ago
Hi,

TinyMCE wrapper was never finished... there were some issues with layout and 
listeners. If you'd like to contribute a patch you're more than welcome.

Thanks,

Pavel

Original comment by pave...@gmail.com on 6 Oct 2008 at 3:42