EditorCommandHandler.onRegistered method
EditorCommandHandler › onRegistered
Registers the editor-menu and markdown-viewport-menu event handlers.Both are registered unconditionally; whether an item actually appears is decided per menu render by
shouldAddToEditorMenu / shouldAddToViewportMenu, which both default to false.Signature:
onRegistered(context: CommandHandlerRegistrationContext): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| context | CommandHandlerRegistrationContext | The registration context. |