mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
Merge pull request #2929 from xavidotron/develop
Pass through the "item" parameter to registerAceCommand callbacks.
This commit is contained in:
commit
01d23b1f6a
2 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ Shows the dropdown `div.popup` whose `id` equals `dropdown`.
|
|||
Register a handler for a specific command. Commands are fired if the corresponding button is clicked or the corresponding select is changed.
|
||||
|
||||
## registerAceCommand(cmd, callback)
|
||||
Creates an ace callstack and calls the callback with an ace instance: `callback(cmd, ace)`.
|
||||
Creates an ace callstack and calls the callback with an ace instance (and a toolbar item, if applicable): `callback(cmd, ace, item)`.
|
||||
|
||||
Example:
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue