(name: string, callback: EditorCommandCallback<any>, scope?: object)
| 521 | public addCommand<S>(name: string, callback: EditorCommandCallback<S>, scope: S): void; |
| 522 | public addCommand(name: string, callback: EditorCommandCallback<Editor>): void; |
| 523 | public addCommand(name: string, callback: EditorCommandCallback<any>, scope?: object): void { |
| 524 | /** |
| 525 | * Callback function that gets called when a command is executed. |
| 526 | * |
| 527 | * @callback addCommandCallback |
| 528 | * @param {Boolean} ui Display UI state true/false. |
| 529 | * @param {Object} value Optional value for command. |
| 530 | * @return {Boolean} True/false state if the command was handled or not. |
| 531 | */ |
| 532 | this.editorCommands.addCommand(name, callback, scope); |
| 533 | } |
| 534 | |
| 535 | /** |
| 536 | * Adds a custom query state command to the editor. This function can also be used to override existing commands. |
no outgoing calls
no test coverage detected