Controlling Editor Access in the JavaScript Rich Text Editor control
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.
Disabled mode
The Rich Text Editor component offers a feature to disable the editor, preventing any user interaction.This functionality is particularly useful when you need to display content without allowing modifications or when you want to temporarily restrict user input.
How to disable the editor
To disable the editor, set the enabled property to false.
When disabled, the editor becomes non-interactive, ensuring that users cannot edit or modify the content.
Below are examples and code snippets demonstrating how to disable the Rich Text Editor by setting the enabled property to false.