code: function BaseEditor(options) {
  		options = options || {};
  		this._domNode = options.domNode;
  		this._model = options.model;
  		this._undoStack = options.undoStack;
  		this._statusReporter = options.statusReporter;
  		this._title = null;
  		var that = this;
  		this._listener = {
  			onChanged: function(e) {
  				that.onChanged(e);
  			}
  		};
  		if (this._model) {
  			this._model.addEventListener("Changed", this._listener.onChanged); //$NON-NLS-0$
  		}
  		this.checkDirty();
  	}
docs: $NON-NLS-0$ 
  @name orion.editor.BaseEditor
  @class This is the base interface for text and visual editors based on a text buffer.
  
  @description Creates a new Base Editor with the given options.
  @param {Object} options Creation options for this editor.
  @param {Object} options.domNode
  @param {Object} options.statusReporter
  
  @borrows orion.editor.EventTarget#addEventListener as #addEventListener
  @borrows orion.editor.EventTarget#removeEventListener as #removeEventListener
  @borrows orion.editor.EventTarget#dispatchEvent as #dispatchEvent