MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / onBeforeExtend

Method onBeforeExtend

packages/core/src/engine/editor.ts:280–286  ·  view source on GitHub ↗
(listener: (editor: Editor) => void)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

onMethod · 0.45
offMethod · 0.45

Tested by

no test coverage detected