code: function(cmd, value) {
          Ext.defer(function() {
              var me = this;
              
              if (!this.isDestroyed) {
                  me.win.focus();
                  me.execCmd(cmd, value);
                  me.updateToolbar();
              }
          }, 10, this);
      }
docs: 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