includes/clientside/static/dynano.js
changeset 864 09c3ba4f6fbf
parent 832 7152ca0a0ce9
child 1040 c631faf25a12
equal deleted inserted replaced
863:195920655c6c 864:09c3ba4f6fbf
   133 
   133 
   134 function DN_destroyMCE(performWikiTransform)
   134 function DN_destroyMCE(performWikiTransform)
   135 {
   135 {
   136   //if ( !this.object.dn_is_mce )
   136   //if ( !this.object.dn_is_mce )
   137   //  return this;
   137   //  return this;
   138   if ( this.object.id )
   138   if ( this.object.id && window.tinymce )
   139   {
   139   {
   140     // TinyMCE 2.x
   140     // TinyMCE 2.x
   141     // tinymce.EditorManager.removeMCEControl(this.object.name);
   141     // tinymce.EditorManager.removeMCEControl(this.object.name);
   142     // TinyMCE 3.x
   142     // TinyMCE 3.x
   143     var ed = tinymce.EditorManager.getInstanceById(this.object.id);
   143     var ed = tinymce.EditorManager.getInstanceById(this.object.id);