Skip to main content

Link Dialogs

  • 2 minutes to read

Link dialogs include the following dialog types:

This dialog allows users to insert a new hyperlink into the editor’s content.

ASPxHtmlEditor-Concepts-UI-Dialogs-InsertLink

This dialog allows users to change settings for the selected hyperlink.

ASPxHtmlEditor-Concepts-UI-Dialogs-ChangeLink

Select Document Dialog (Document Selector)

Within the Insert Link and Change Link dialogs, you can add a Select Document dialog that allows users to use a point-and-click UI to specify URLs. To invoke the Select Document dialog, click the edit button (an ellipsis) displayed next to the URL field of the Insert Link or Change Link dialog.

To customize the Select Document dialog settings, including its availability, use the HtmlEditorInsertLinkDialogSettings.SettingsDocumentSelector properties. For instance, set the SettingsDocumentSelector.Enabled property to true to enable the Select Document dialog.

DocumentSelector-dialog.png

Because the ASPxFileManager control is integrated into the Select Document dialog, all file/folder management, access control, and upload capabilities are available to you out-of-the-box.

Online Demo

Document Selector

On the client side, the ASPxHtmlEditor API allows you to manage the opened dialog programmatically.

Dialog UI elements

Client method

Common Dialog UI elements

ASPxClientHtmlEditorDialogBase.GetOkButton

ASPxClientHtmlEditorDialogBase.GetCancelButton

ASPxClientHtmlEditorLinkDialog.GetLinkTypeRadioButtonList

“Select Document” popup window UI elements

ASPxClientHtmlEditorLinkDialog.GetFileManager

ASPxClientHtmlEditorLinkDialog.GetSelectDocumentPopupCancelButton

ASPxClientHtmlEditorLinkDialog.GetSelectDocumentPopupSelectButton

Insert Link (URL)

ASPxClientHtmlEditorLinkDialog.GetOpenInNewWindowCheckBox

ASPxClientHtmlEditorLinkDialog.GetUrlTextBox

ASPxClientHtmlEditorLinkDialog.GetTooltipTextBox

InsertLink (E-mail address)

ASPxClientHtmlEditorLinkDialog.GetEmailTextBox

ASPxClientHtmlEditorLinkDialog.GetSubjectTextBox

ASPxClientHtmlEditorLinkDialog.GetTooltipTextBox

ASPxHtmlEditor-ClientAPI-InsertLink-1

ASPxHtmlEditor-ClientAPI-InsertLink-2