Back to Devexpress

ASPxClientCommandConsts.PASTEHTML_COMMAND Property

aspnet-js-aspxclientcommandconsts-dot-pastehtml-underscore-command.md

latest1.4 KB
Original Source

ASPxClientCommandConsts.PASTEHTML_COMMAND Property

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

Declaration

ts
static PASTEHTML_COMMAND: string

Property Value

TypeDescription
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.

javascript
//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

HTML Editor

ExecuteCommand(commandName, parameter, addToUndoHistory)

Design View

ASPxClientCommandConsts Class

ASPxClientCommandConsts Members