Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

HtmlEditorToolbarGroupNames.InsertElement Property

Gets the name of the Insert Element group.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public static string InsertElement { get; }

#Property Value

Type Description
String

The “InsertElement” string.

#Remarks

The Insert Element group in the HtmlEditor‘s toolbar includes the following items:

Show Hyperlink Dialog
The button invokes the Hyperlink dialog that allows users to create new hyperlinks.
Show Insert Picture Dialog
The button invokes the Insert Image dialog that allows users to insert a picture from a local file or a web page.
Insert Code Block
The button allows users to insert a code block.
Insert Blockquote
The button allows users to insert a blockquote.

Html Editor - Toolbar Insert Element Group

Use the InsertElement property to perform the following operations:

The following code snippet removes all items from the toolbar’s Insert Element group:

Razor
<DxHtmlEditor Width="100%"
              Height="200px"
              CustomizeToolbar="@OnCustomizeToolbar"/>

@code {
    void OnCustomizeToolbar(IToolbar toolbar) {
        IBarGroup insertGroup = toolbar.Groups[HtmlEditorToolbarGroupNames.InsertElement];
        insertGroup.Items.Clear();
    }
}
See Also