ASPxClientHtmlEditorChangeMediaElementCommandArguments.id Property
In This Article
Defines the HTML “id” attribute of the target media element.
#Declaration
TypeScript
id: string
#Property Value
Type | Description |
---|---|
string | A string value which is a unique identifier for the element. |
#Remarks
// Changing the selected audio element's id and css class
var audio = htmlEditor.GetSelection().GetSelectedElement();
var args = htmlEditor.CreateChangeMediaElementCommandArguments(audio);
args.id = "myAudioNew";
args.styleSettings.className = "myCssClass";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);
See Also