Skip to main content

ToolbarInsertLinkDialogButton Class

A default toolbar button that invokes a link dialog allowing a hyperlink to be inserted into the design view area.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public class ToolbarInsertLinkDialogButton :
    HtmlEditorToolbarItem

Remarks

ASPxHtmlEditor supports working with links in the design view area, by using the specific link dialogs that can be invoked by clicking the Insert Link button (of the ToolbarInsertLinkDialogButton type).

You can add the Insert Link button to toolbars by using either the ASPxHtmlEditor designer at design time, or programmatically.

protected void Page_Load(object sender, EventArgs e)
{
    HtmlEditorToolbar stToolbar1 = HtmlEditorToolbar.CreateStandardToolbar1();
    ToolbarInsertLinkDialogButton linkButton = new ToolbarInsertLinkDialogButton();
    stToolbar1.Items.Add(linkButton);
    ASPxHtmlEditor1.Toolbars.Add(stToolbar1);
}
See Also