MarkdownMonsterAddin.OnEditorCommand

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 string OnEditorCommand(string command,
	string input)

Return Value

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

Parameters

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

input
Selected text if any


See also:

Class MarkdownMonsterAddin

© West Wind Technologies, 1996-2021 • Updated: 02/14/20
Comment or report problem with topic