Skip to content

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:

ParameterTypeDescription
contextCommandHandlerRegistrationContextThe registration context.

Returns: Promise<void>