ASPxClientHtmlEditorBeforePasteEventArgs.commandName Property
Gets the name of the processed command.
Declaration
commandName: string
Property Value
Type | Description |
---|---|
string | A string value identifying the command’s name. |
Remarks
Use the commandName property to identify the command currently being processed. The property can return the following command names
- pastehtmlsourceformatting - HTML code is pasted in the SourceFormatting mode.
- pastehtmlmergeformatting - HTML code is pasted in the MergeFormatting mode.
- pastehtmlplaintext - HTML code is pasted in the PlainText mode.
The ASPxClientHtmlEditor.BeforePaste event fires before an HTML code is pasted to the editor in the following cases.
- When an end-user presses the CTRL+V key combination. In this case, the commandName property value depends on the ASPxHtmlEditorHtmlEditingSettings.PasteMode property value.
- When the PASTEHTMLSOURCEFORMATTING_COMMAND, PASTEHTMLMERGEFORMATTING_COMMAND, or PASTEHTMLPLAINTEXT_COMMAND is executed by calling the ASPxClientHtmlEditor.ExecuteCommand or by clicking a paste options bar item. In this case, the commandName property value depends on the executed command (or clicked button).
See Also