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(Defined in: modules/editor/src/protocol.ts:286ctx):void|Promise<void>
Parameters
ctx
EditorInitContext
Returns
void | Promise<void>