(listener: (editor: Editor) => void)
| 270 | } |
| 271 | |
| 272 | onDestroy(listener: (editor: Editor) => void) { |
| 273 | this.eventBus.on(EDITOR_EVENT.DESTROY, listener) |
| 274 | |
| 275 | return () => { |
| 276 | this.eventBus.off(EDITOR_EVENT.DESTROY, listener) |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | onBeforeExtend(listener: (editor: Editor) => void) { |
| 281 | this.eventBus.on(EDITOR_EVENT.BEFORE_EXTEND, listener) |