Skip to main content

constructor(htmlEditor, selectedElement) Constructor

Initializes a new instance of the ASPxClientHtmlEditorInsertLinkCommandArguments class.

Declaration

constructor(
    htmlEditor: ASPxClientHtmlEditor,
    selectedElement: any
)

Parameters

Name Type Description
htmlEditor ASPxClientHtmlEditor

An HTML editor in which you want to insert an element.

selectedElement any

An object containing the currently selected element in the HTML editor. This element will be replaced with the inserted link.

Remarks

// Inserting a new hyperlink to the current cursor position
var args = new ASPxClientHtmlEditorInsertLinkCommandArguments(htmlEditor);
args.target = "_blank";
args.text = "Visit our website";
args.title = "DevExpress";
args.url = "https://www.devexpress.com";
htmlEditor.ExecuteCommand(ASPxClientCommandConsts.INSERTLINK_COMMAND, args);
See Also