Back to Devexpress

HtmlEditorToolbarGroupNames.InsertElement Property

blazor-devexpress-dot-blazor-dot-htmleditortoolbargroupnames-0376d55c.md

latest2.7 KB
Original Source

HtmlEditorToolbarGroupNames.InsertElement Property

Gets the name of the Insert Element group.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public static string InsertElement { get; }

Property Value

TypeDescription
String

The “InsertElement” string.

|

Remarks

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

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

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

HtmlEditorToolbarGroupNames Class

HtmlEditorToolbarGroupNames Members

DevExpress.Blazor Namespace