add afterExec event
This commit is contained in:
parent
911cbb3bfb
commit
d8cfb0687d
1 changed files with 6 additions and 8 deletions
|
|
@ -49,11 +49,9 @@ oop.inherits(CommandManager, HashHandler);
|
||||||
if (editor && editor.$readOnly && !command.readOnly)
|
if (editor && editor.$readOnly && !command.readOnly)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var retvalue = this._emit("exec", {
|
var e = {editor: editor, command: command, args: args};
|
||||||
editor: editor,
|
var retvalue = this._emit("exec", e);
|
||||||
command: command,
|
this._signal("afterExec", e);
|
||||||
args: args
|
|
||||||
});
|
|
||||||
|
|
||||||
return retvalue === false ? false : true;
|
return retvalue === false ? false : true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue