Skip to content

EditorCommandHandler.shouldAddToEditorMenu method

EditorCommandHandler › shouldAddToEditorMenu

Checks whether the command should appear in the editor context menu.

Signature:

shouldAddToEditorMenu(_editor: Editor, _ctx: MarkdownFileInfo): boolean

Parameters:

ParameterTypeDescription
_editorEditorThe editor instance.
_ctxMarkdownFileInfoThe markdown file context.

Returns: booleanWhether to add to the editor menu.