Full-Featured Blazor Text Editor for Your Blazor Apps
The Telerik UI for Blazor Rich Text Editor component is a WYSIWYG in-app editor designed for the creation of rich documents. Users can always open their favorite document editor and apply their changes there but why have them rely on another app when they can do everything in your project? The format of the resulting doc is HTML so it can be easily presented elsewhere in the application.
Toolbar
A Toolbar is rendered on the top of the Blazor Text Editor component and provides access to the commands available to the user. Commands include everything you would expect from an editor - undo and redo, changing the text decorations and weight, font, alignment, insertion of tables, bullet lists, etc. The toolbar uses your app’s theme for its visual style so you can transform its looks to fit the app.
Tools
The commands available on the Toolbar are called tools. The Blazor Rich Text Editor ships with a plethora of tools and by default will display them all on the toolbar. These include a color palette to pick the color, button for toggling bold, italic or underline, align the text, etc. They're also accessible programmatically and you can execute them from code if need be. The set of items is completely customizable. If you want to remove an unnecessary command or even add a custom command this is easily doable as the controls takes a list of IEditorTools which can contain as many or as few commands you want to.
The table resizing feature in the Telerik UI for Blazor Editor component is enabled by default. The editor supports resizing for columns, rows and table. The resizing feature includes handles which are rendered on hovering the column and row borders. Analogically, the image resizing feature is enabled by handles positioned in every corner of the image.
The Blazor Text Editor control can be configured to work either as an IFrame (the default) or as a Div. The difference between the two is the type of element which hosts the content area. When the content is displayed in an IFrame, it doesn’t inherit CSS rules from the current page. This makes it impossible to erroneously introduce a style which will break the editor but may also be limiting.
Pasting Cleanup
When pasting content from other applications (e.g. MS Word or a website), the Editor will try to preserve the original formatting like bullet lists and links as much as possible while removing unsupported information. You have control over what exactly is kept and what is thrown away.
Media
The Editor component now allows you to add media tags such as video, audio and iframe (including nested source tags).
Saving your users’ time and effort by integrating an editor in your web app is the core premise of this control so saving another couple of clicks of adding new images as opposed to simple copy/paste is only natural.
The Blazor Rich Text Editor component supports copying and pasting images directly in the editing area with some limitations due to browser permissions. Check the docs for information about the limitations.
Import and Export
The HTML format of the generated document might be impractical in some situations where you would need a more standard one like .doc, .rtf or .pdf. Your Blazor license also includes access to the Telerik Document Processing Tools which you can use to import and export the contents of the Editor to your preferred file type.
Events
Every once in a while (100ms by default), if the user has changed the contents of the Editor, the control will trigger the ValueChanged event.
Localization
The built-in tools are fully localizable, and their tooltips will change depending on the currently active language. This makes the editor usable in any app, regardless of the user's language skills.
Like most other Telerik UI for Blazor components, the Editor has built-in Keyboard Navigation implemented which allows you to easily navigate through it by using just the keyboard.
Also Available...
The Editor component is also available for these Web development frameworks:
The Telerik UI for Blazor Rich Text Editor component supports right-to-left configuration. The RTL functionality is supported by most of our components to accommodate users who communicate in a right-to-left language script, such as Arabic and Hebrew.