(listener: (editor: Editor) => void)
| 254 | } |
| 255 | |
| 256 | onBeforeInit(listener: (editor: Editor) => void) { |
| 257 | this.eventBus.on(EDITOR_EVENT.BEFORE_INIT, listener) |
| 258 | |
| 259 | return () => { |
| 260 | this.eventBus.off(EDITOR_EVENT.BEFORE_INIT, listener) |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | onAfterInit(listener: (editor: Editor) => void) { |
| 265 | this.eventBus.on(EDITOR_EVENT.AFTER_INIT, listener) |