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

Method onBeforeInit

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

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

onMethod · 0.45
offMethod · 0.45

Tested by

no test coverage detected