code: function() {
  			BaseEditor.prototype.destroy.call(this);
  			this._textViewFactory = this._undoStackFactory = this._textDNDFactory = 
  			this._annotationFactory = this._foldingRulerFactory = this._lineNumberRulerFactory = 
  			this._contentAssistFactory = this._keyBindingFactory = this._hoverFactory = this._zoomRulerFactory = null;
  		}
docs: Destroys the editor.