HtmlEditorToolbarGroupNames.InsertElement Property
Gets the name of the Insert Element group.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
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.
Use the InsertElement
property to perform the following operations:
The following code snippet removes all items from the toolbar’s Insert Element group:
<DxHtmlEditor Width="100%"
Height="200px"
CustomizeToolbar="@OnCustomizeToolbar"/>
@code {
void OnCustomizeToolbar(IToolbar toolbar) {
IBarGroup insertGroup = toolbar.Groups[HtmlEditorToolbarGroupNames.InsertElement];
insertGroup.Items.Clear();
}
}
See Also