Identifies a command that wraps the currently selected text content in a specific html tag with a css class assigned to it.
static APPLYCSS_COMMAND: string
The APPLYCSS_COMMAND property can be used in the following ways.
- In the ASPxClientHtmlEditor.CommandExecuted event — to determine the toolbar or ribbon item clicked by an end-user. If the ASPxClientHtmlEditorCommandEventArgs.commandName event parameter returns the APPLYCSS_COMMAND property value, this means that either the ToolbarCustomCssEdit toolbar item or the HECustomCssRibbonCommand ribbon item (depending upon the toolbar mode used) has been manipulated by an end-user.
In the ASPxClientHtmlEditor.ExecuteCommand method — to execute the command manually.
In this case, the method requires an additional parameter, which is a string containing the type of the tag and the css class that will be applied to it. They should be divided by a vertical line ('|'). You can also skip the tag name and start the parameter from the vertical line. In this case, the css class will be applied to the first parent element.
//wraps the selection in div with 'myClass' css class htmlEditor.ExecuteCommand(ASPxClientCommandConsts.APPLYCSS_COMMAND, 'div|myClass')
This command is available only in the Design View.