jeudi 27 mars 2014

TinyMCE 4 remove not working


Vote count:

0




I'm using the following to initialize a TinyMCE-editor:



$(obj).tinymce({ menubar: false });


Then, later, I'm removing it using this:



$(obj).tinymce().remove();


If I now remove obj from the DOM, and try to use tinymce on other objects, the editor is not working (not able to type, content is not shown).


Why is it not working? :)


Have also tried other combinations, i.e.: tinymce.remove('#id'), tinyMCE.EditorManager.execCommand('mceRemoveEditor', true, "id"), but the same thing happens.



asked 34 secs ago






Aucun commentaire:

Enregistrer un commentaire