The Blazor HTML Editor is a rich text (WYSIWYG) editor with a full toolbar of formatting tools, image and link support, and HTML output.
As all Radzen Blazor input components the HtmlEditor has a Value property which gets and sets the value of the component. Use @bind-Value to get the user input.
Console log
The Radzen HtmlEditor supports the following tools:
Here is how to specify a custom set of tools.
You can insert images by pasting them or using the RadzenHtmlEditorImage tool. By default images are inserted as base64 encoded strings.
To upload images to the server you need to implement a file upload endpoint and set the UploadUrl property of the RadzenHtmlEditor component:
<RadzenHtmlEditor @bind-Value=@htmlValue UploadUrl="api/upload/image" />.
For a sample implementation check the UploadController.cs tab.
Programmatically set focus to the HTML editor using the FocusAsync() method.
The built-in table editor supports inserting tables, adding and removing rows or columns, merge and split operations, keyboard navigation, copy and paste for cell ranges, column resizing and a property panel for cell styling.
The following keys or key combinations provide a way for users to navigate and interact with Radzen Blazor HTMLEditor component.
| Press this key | To do this | |
|---|---|---|
| Windows, Chrome OS | Mac | |
| Tab | Tab | Navigate to a HTMLEditor component. |
| Ctrl + A | ⌘ + A | Select all text. |
| Ctrl + C | ⌘ + C | Copy. Copies selected table cells when the caret is inside a table. |
| Ctrl + V | ⌘ + V | Paste. Pastes copied table cells into a rectangular range when the caret is inside a table. |
| Shift + Click | Shift + Click | Select a rectangular table cell range. |
| Ctrl + B | ⌘ + B | Bold. |
| Ctrl + I | ⌘ + I | Italic. |
| Ctrl + U | ⌘ + U | Underline. |
| Ctrl + K | ⌘ + K | Insert or edit a link. |
| Ctrl + Z | ⌘ + Z | Undo. |
| Ctrl + Shift + Z | ⌘ + Shift + Z | Redo. |
| Tab | Tab | Move to the next table cell. Adds a new row at the end of a table body. |
Yes. It is a rich text editor where users format content visually using a toolbar, and it produces HTML you can bind to your model.
Use RadzenHtmlEditorCustomTool to add your own toolbar buttons that run custom commands on the selected content.
Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under
MIT