ASPxClientCommandConsts.PASTEHTML_COMMAND Property
In This Article
Identifies a command that can be used to correctly insert HTML code into the editor.
#Declaration
TypeScript
static PASTEHTML_COMMAND: string
#Property Value
Type | Description |
---|---|
string | Value: “pastehtml” |
#Remarks
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>');
Note
This command is available only in the Design View and isn’t related to any UI element of the html editor.
See Also