Skip to content

command-handlers/editor-command-handler

Command handler for editor commands with optional editor menu integration.

Class Description
EditorCommandHandler Command handler for editor commands. Subclasses override canExecuteEditor and executeEditor to provide behavior. Optionally integrates with the editor context menu via shouldAddToEditorMenu, and with the markdown viewport (margin) menu via shouldAddToViewportMenu.
Interface Description
EditorCommandHandlerConstructorParams Parameters for creating an editor command handler.
EditorCommandHandlerEditorCheckCallbackParams Parameters for EditorCommandHandler.editorCheckCallback.
EditorCommandHandlerHandleEditorMenuParams Parameters for EditorCommandHandler.handleEditorMenu.
EditorCommandHandlerHandleViewportMenuParams Parameters for EditorCommandHandler.handleViewportMenu.