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

Method onAfterInit

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

Source from the content-addressed store, hash-verified

262 }
263
264 onAfterInit(listener: (editor: Editor) => void) {
265 this.eventBus.on(EDITOR_EVENT.AFTER_INIT, listener)
266
267 return () => {
268 this.eventBus.off(EDITOR_EVENT.AFTER_INIT, listener)
269 }
270 }
271
272 onDestroy(listener: (editor: Editor) => void) {
273 this.eventBus.on(EDITOR_EVENT.DESTROY, listener)

Callers

nothing calls this directly

Calls 2

onMethod · 0.45
offMethod · 0.45

Tested by

no test coverage detected