static/ext/src/form/field/HtmlEditor.js
function(cmd, value) {
        Ext.defer(function() {
            var me = this;
            
            if (!this.isDestroyed) {
                me.win.focus();
                me.execCmd(cmd, value);
                me.updateToolbar();
            }
        }, 10, this);
    }
function(cmd, value) {
        Ext.defer(function() {
            var me = this;
            
            if (!this.isDestroyed) {
                me.win.focus();
                me.execCmd(cmd, value);
                me.updateToolbar();
            }
        }, 10, this);
    }
Executes a Midas editor command on the editor document and performs necessary focus and toolbar updates.
**This should only be called after the editor is initialized.**
@param {String} cmd The Midas command
@param {String/Boolean} [value=null] The value to pass to the command