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.
RadzenHtmlEditorColor - sets the foreground color of the selected text.
RadzenHtmlEditorBackground - sets the background color of the selected text.
RadzenHtmlEditorRemoveFormat - removes the visual styling of the selected text.
RadzenHtmlEditorSubscript - converts the selected text to subscript.
RadzenHtmlEditorSource - edit the HTML source as text.
RadzenHtmlEditorSuperscript - converts the selected text to superscript
RadzenHtmlEditorLink - inserts a hyperlink.
RadzenHtmlEditorUnlink - removes a hyperlink.
RadzenHtmlEditorImage - allows the user to insert an image by either uploading a file or selecting a URL. Requires File upload to be implemented and the UploadUrl property of the HtmlEditor to be set.
RadzenHtmlEditorTable - inserts and edits HTML tables including rows, columns, merge/split, styling, copy/paste, resizing and context menu actions.
RadzenHtmlEditorFontName - set the font of the selected text.
RadzenHtmlEditorFontSize - set the font size of the selected text.
RadzenHtmlEditorFormatBlock - allows the user to format the selected text as heading or paragraph.
RadzenHtmlEditorCustomTool - allows the developer to implement a custom tool.
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.
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.
info
Try Shift+Click to select a rectangular cell range, use the context menu for copy/paste, and drag the right cell edge to resize a whole column.