Skip to main content
A newer version of this page is available. .

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.v20.2.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