ASPxClientHtmlEditorChangeMediaElementCommandArguments.src Property
Defines the source of the target media element.
Declaration
src: string
Property Value
Type | Description |
---|---|
string | A string defining the source of the target media element. |
Remarks
// Changing the selected YouTube video element's source
var video = htmlEditor.GetSelection().GetSelectedElement();
var args = htmlEditor.CreateChangeMediaElementCommandArguments(video);
args.src = "https://www.youtube.com/watch?v=69qEHlHAj7Y";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);
See Also