ASPxClientCommandConsts.PASTEHTML_COMMAND Property

Identifies a command that can be used to correctly insert HTML code into the editor.


static PASTEHTML_COMMAND: string

Property Value

Type Description

Value: "pastehtml"


The PASTEHTML_COMMAND property can be used in the ASPxClientHtmlEditor.ExecuteCommand method to execute the command manually. The method requires an additional parameter, which is the html content to be pasted.

//pastes the content to the current cursor position
htmlEditor.ExecuteCommand(ASPxClientCommandConsts.PASTEHTML_COMMAND, '<div>Some content</div>');

This command is available only in the Design View and isn't related to any UI element of the html editor.

See Also