* Attach event * @param {string} event Event name * @param {Function} callback Callback function * @return {this}
(event: E, callback: EditorEventHandler<E>)
| 725 | * @return {this} |
| 726 | */ |
| 727 | on<E extends EditorEvent>(event: E, callback: EditorEventHandler<E>) { |
| 728 | this.em.on(event as string, callback); |
| 729 | return this; |
| 730 | } |
| 731 | |
| 732 | /** |
| 733 | * Attach event and detach it after the first run |
no outgoing calls
no test coverage detected