tinymce.full.js
function () {
        var self = this;

        if (!self.removed) {
          self.save();
          self.removed = 1;
          self.unbindAllNativeEvents();

          // Remove any hidden input
          if (self.hasHiddenInput) {
            DOM.remove(self.getElement().nextSibling);
          }

          if (!self.inline) {
            // IE 9 has a bug where the selection stops working if you place the
            // caret inside the editor then remove the iframe
            if (ie && ie < 10) {
              self.getDoc().execCommand('SelectAll', false, null);
            }

            DOM.setStyle(self.id, 'display', self.orgDisplay);
            self.getBody().onload = null; // Prevent #6816
          }

          self.fire('remove');

          self.editorManager.remove(self);
          DOM.remove(self.getContainer());
          self._selectionOverrides.destroy();
          self.editorUpload.destroy();
          self.destroy();
        }
      }
function () {
        var self = this;

        if (!self.removed) {
          self.save();
          self.removed = 1;
          self.unbindAllNativeEvents();

          // Remove any hidden input
          if (self.hasHiddenInput) {
            DOM.remove(self.getElement().nextSibling);
          }

          if (!self.inline) {
            // IE 9 has a bug where the selection stops working if you place the
            // caret inside the editor then remove the iframe
            if (ie && ie < 10) {
              self.getDoc().execCommand('SelectAll', false, null);
            }

            DOM.setStyle(self.id, 'display', self.orgDisplay);
            self.getBody().onload = null; // Prevent #6816
          }

          self.fire('remove');

          self.editorManager.remove(self);
          DOM.remove(self.getContainer());
          self._selectionOverrides.destroy();
          self.editorUpload.destroy();
          self.destroy();
        }
      }
function ( ) { var self = this ; if ( ! self . removed ) { self . save ( ) ; self . removed = 1 ; self . unbindAllNativeEvents ( ) ; // Remove any hidden input if ( self . hasHiddenInput ) { DOM . remove ( self . getElement ( ) . nextSibling ) ; } if ( ! self . inline ) { // IE 9 has a bug where the selection stops working if you place the // caret inside the editor then remove the iframe if ( ie && ie < 10 ) { self . getDoc ( ) . execCommand ( 'SelectAll' , false , null ) ; } DOM . setStyle ( self . id , 'display' , self . orgDisplay ) ; self . getBody ( ) . onload = null ; // Prevent #6816 } self . fire ( 'remove' ) ; self . editorManager . remove ( self ) ; DOM . remove ( self . getContainer ( ) ) ; self . _selectionOverrides . destroy ( ) ; self . editorUpload . destroy ( ) ; self . destroy ( ) ; } }
Removes the editor from the dom and tinymce collection.

@method remove
Removes the editor from the dom and tinymce collection .