code: function (selector) {
          var self = this, i, editors = self.editors, editor;
  
          // Remove all editors
          if (!selector) {
            for (i = editors.length - 1; i >= 0; i--) {
              self.remove(editors[i]);
            }
  
            return;
          }
  
          // Remove editors by selector
          if (typeof selector == "string") {
            selector = selector.selector || selector;
  
            each(DOM.select(selector), function (elm) {
              editor = editors[elm.id];
  
              if (editor) {
                self.remove(editor);
              }
            });
  
            return;
          }
  
          // Remove specific editor
          editor = selector;
  
          // Not in the collection
          if (!editors[editor.id]) {
            return null;
          }
  
          if (removeEditorFromList(editor)) {
            self.fire('RemoveEditor', { editor: editor });
          }
  
          if (!editors.length) {
            DOM.unbind(window, 'beforeunload', beforeUnloadDelegate);
          }
  
          editor.remove();
  
          toggleGlobalEvents(editors, editors.length > 0);
  
          return editor;
        }
docs: Removes a editor or editors form page.
  
  @example
  // Remove all editors bound to divs
  tinymce.remove('div');
  
  // Remove all editors bound to textareas
  tinymce.remove('textarea');
  
  // Remove all editors
  tinymce.remove();
  
  // Remove specific instance by id
  tinymce.remove('#id');
  
  @method remove
  @param {tinymce.Editor/String/Object} [selector] CSS selector or editor instance to remove.
  @return {tinymce.Editor} The editor that got passed in will be return if it was found otherwise null.