(listener: (editor: Editor) => void)
| 262 | } |
| 263 | |
| 264 | onAfterInit(listener: (editor: Editor) => void) { |
| 265 | this.eventBus.on(EDITOR_EVENT.AFTER_INIT, listener) |
| 266 | |
| 267 | return () => { |
| 268 | this.eventBus.off(EDITOR_EVENT.AFTER_INIT, listener) |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | onDestroy(listener: (editor: Editor) => void) { |
| 273 | this.eventBus.on(EDITOR_EVENT.DESTROY, listener) |