code: function(options) {
  			return mBootstrap.startup(this.serviceRegistry, this.contentTypeRegistry, this._startupOptions).then(function(core) {
  				var serviceRegistry = core.serviceRegistry;
  				var pluginRegistry = core.pluginRegistry;
  				return this._init(core).then( function () {
  					if(!options) {
  						return new Deferred().resolve(core);
  					}
  					var editorHelper = new mEditorSetup.EditorSetupHelper({
  						serviceRegistry: serviceRegistry,
  						pluginRegistry: pluginRegistry,
  						commandRegistry: this._commandRegistry,
  						fileClient: this._fileClient,
  						contentTypeRegistry: this.contentTypeRegistry,
  						editorCommands: this._editorCommands,
  						editorConfig: this._editorConfig,
  						progressService: this._progressService,
  						toolbarId: this._toolbarId
  					});
  					return editorHelper.createEditor(options);
  		 		}.bind(this));
  
  			}.bind(this));
  		}
docs: @class This object describes the options for <code>create</code>.
  @name orion.editor.EditOptions
  
  @property {String|DOMElement} parent the parent element for the view, it can be either a DOM element or an ID for a DOM element.
  @property {String} [contents=""] the editor contents.
  @property {String} [contentType] the type of the content (eg.- application/javascript, text/html, etc.)
   
  If options is defined, creates an editorview instance configured with the given options. Otherwise load all the plugins nad initialize the widegt.
  
  @param {orion.editor.EditOptions} options the editor options.