mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
Pass through the "item" parameter to registerAceCommand callbacks.
This commit is contained in:
parent
c5638dd7e5
commit
56b851a46f
2 changed files with 3 additions and 3 deletions
|
@ -242,9 +242,9 @@ var padeditbar = (function()
|
|||
});
|
||||
},
|
||||
registerAceCommand: function (cmd, callback) {
|
||||
this.registerCommand(cmd, function (cmd, ace) {
|
||||
this.registerCommand(cmd, function (cmd, ace, item) {
|
||||
ace.callWithAce(function (ace) {
|
||||
callback(cmd, ace);
|
||||
callback(cmd, ace, item);
|
||||
}, cmd, true);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue