Controlling Editor Access in Blazor Rich Text Editor Component
18 Nov 20181 minute to read
Read-only mode
The Rich Text Editor control offers a read-only mode that prevents you from editing the content while still allowing them to view it. This feature is particularly useful when you want to display formatted content without permitting modifications.
To enable the read-only mode, set the Readonly property to true.
This will allow you to view the content without making any modifications.
Please refer to the sample and code snippets below to demonstrate how to enable the read-only mode in the Rich Text Editor.
@using Syncfusion.Blazor.RichTextEditor
<SfRichTextEditor Readonly="true">
<p>The Rich Text Editor component is the WYSIWYG ('what you see is what you get') editor that provides the best user experience to create and update content. Users can format their content using standard toolbar commands.</p>
<p><b> Key features:</b></p>
<ul>
<li><p> Provides <b>IFRAME</b> and <b>DIV</b> modes </p></li>
<li><p> Capable of handling markdown editing.</p></li>
<li><p> Contains a modular library to load the necessary functionality on demand.</p></li>
<li><p> Provides a fully customizable toolbar.</p></li>
<li><p> Provides HTML view to edit the source directly for developers.</p></li>
<li><p> Supports third - party library integration.</p></li>
</ul>
</SfRichTextEditor>