equal
deleted
inserted
replaced
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); |