Optional editor command handler that can intercept editor commands like bold/italic that are fired if not handled previously by the default handlers.

Allows adding custom handlers for additional markdown expansions you'd like to fire from custom buttons, or using AdditionalToolbarIcons.

public virtual Task<String> OnEditorCommand(string command,
	string input)

Return Value

Return the expanded or injected text. Return null to leave the input unchanged.


Name of the Markup command to handle (ie. something like bold, italic, list)

Selected text if any

See also:

Class MarkdownMonsterAddin

© West Wind Technologies, 2016-2022 • Updated: 11/23/21
Comment or report problem with topic