(listener: (editor: Editor) => void)
| 278 | } |
| 279 | |
| 280 | onBeforeExtend(listener: (editor: Editor) => void) { |
| 281 | this.eventBus.on(EDITOR_EVENT.BEFORE_EXTEND, listener) |
| 282 | |
| 283 | return () => { |
| 284 | this.eventBus.off(EDITOR_EVENT.BEFORE_EXTEND, listener) |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | onAfterExtend(listener: (editor: Editor) => void) { |
| 289 | this.eventBus.on(EDITOR_EVENT.AFTER_EXTEND, listener) |