Demonstration and configuration of the Radzen Blazor HtmlEditor component.
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="upload/image" />
.
For a sample implementation check the UploadController.cs
tab.
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. |
Ctrl + V | ⌘ + V | Paste. |
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. |
Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.
Radzen Blazor Components, © 2018-2024 Radzen.
Source Code licensed under
MIT