The requested page is not available for the requested platform. You are viewing the content for Default platform. Property

Defines the HTML "id" attribute of the target media element.


id: string

Property Value

Type Description

A string value which is a unique identifier for the element.


// Changing the selected audio element's id and css class
var audio = htmlEditor.GetSelection().GetSelectedElement();
var args = htmlEditor.CreateChangeMediaElementCommandArguments(audio); = "myAudioNew";
args.styleSettings.className = "myCssClass";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);
See Also