Skip to content

EditorCommandHandler.canExecuteEditor method

EditorCommandHandler › canExecuteEditor

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

Signature:

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

Parameters:

ParameterTypeDescription
_editorEditorThe editor instance.
_ctxMarkdownFileInfoThe markdown file context.

Returns: booleanWhether the command can execute.