Skip to content

EditorCommandHandler.canExecuteEditor method

EditorCommandHandler › canExecuteEditor

Checks whether the command can execute for the given editor and context.

Signature:

canExecuteEditor(_editor: Editor, _context: MarkdownFileInfo): boolean

Parameters:

ParameterTypeDescription
_editorEditorThe editor instance.
_contextMarkdownFileInfoThe markdown file context.

Returns: booleanWhether the command can execute.