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

ASPxClientHtmlEditorChangeMediaElementCommandArguments.src Property

Defines the source of the target media element.


src: string

Property Value

Type Description

A string defining the source of the target media element.


// Changing the selected YouTube video element's source
var video = htmlEditor.GetSelection().GetSelectedElement();
var args = htmlEditor.CreateChangeMediaElementCommandArguments(video);
args.src = "";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);
See Also