dijit.Editor.postCreate
dojo.require("dijit.Editor");
defined in dijit/Editor.js
Usage
function () (view source)
if(this.customUndo){ dojo['require']("dijit._editor.range"); this._steps=this._steps.slice(0); this._undoedSteps=this._undoedSteps.slice(0); // this.addKeyHandler('z',this.KEY_CTRL,this.undo); // this.addKeyHandler('y',this.KEY_CTRL,this.redo); } if(dojo.isArray(this.extraPlugins)){ this.plugins=this.plugins.concat(this.extraPlugins); } // try{ this.inherited(arguments); // dijit.Editor.superclass.postCreate.apply(this, arguments); this.commands = dojo.i18n.getLocalization("dijit._editor", "commands", this.lang); if(!this.toolbar){ // if we haven't been assigned a toolbar, create one this.toolbar = new dijit.Toolbar({}); dojo.place(this.toolbar.domNode, this.editingArea, "before"); } dojo.forEach(this.plugins, this.addPlugin, this); this.onNormalizedDisplayChanged(); //update toolbar button status // }catch(e){ console.debug(e); }