ASPxClientCommandConsts.INSERTPLACEHOLDER_COMMAND Property
In This Article
Identifies a command that inserts a new placeholder.
#Declaration
TypeScript
static INSERTPLACEHOLDER_COMMAND: string
#Property Value
Type | Description |
---|---|
string | Value: “insertplaceholder” |
#Remarks
The INSERTPLACEHOLDER_COMMAND property can be used in the following ways.
- In the ASPxClientHtmlEditor.CommandExecuted event — to determine the action performed by an end-user. If the ASPxClientHtmlEditorCommandEventArgs.commandName event parameter returns the INSERTPLACEHOLDER_COMMAND property value, this means that the OK button within the Insert Placeholder dialog was clicked 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 the value of the new placeholder.
//inserts a new placeholder with the "newValue" value htmlEditor.ExecuteCommand(ASPxClientCommandConsts.INSERTPLACEHOLDER_COMMAND, 'newValue');
Note
This command is available only in the Design View.
See Also