Skip to main content
Defined in: modules/editor/src/protocol.ts:285 A library with one-time editor wiring.

Remarks

EditorLibrary calls __editorInit on every registered library that has it, once, in run order, when the editor’s welcome arrives — so ctx.editor.welcome is set. It is never called when no editor started the app. Listen to the editor’s commands and install editor-only behavior here instead of checking ctx.editor on every tick.

Example

Methods

__editorInit()

__editorInit(ctx): void | Promise<void>
Defined in: modules/editor/src/protocol.ts:286

Parameters

ctx
EditorInitContext

Returns

void | Promise<void>