(listener: (editor: Editor) => void)
| 286 | } |
| 287 | |
| 288 | onAfterExtend(listener: (editor: Editor) => void) { |
| 289 | this.eventBus.on(EDITOR_EVENT.AFTER_EXTEND, listener) |
| 290 | |
| 291 | return () => { |
| 292 | this.eventBus.off(EDITOR_EVENT.AFTER_EXTEND, listener) |
| 293 | } |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | export const createEasyEditor = (config?: EditorConfig) => { |