Controlling Editor Access in JavaScript Block Editor control
18 Nov 20181 minute to read
The Syncfusion Block Editor provides read-only modes to control user interaction with the editor. This allows users to view formatted content without editing. This features are useful for displaying content without modifications or temporarily restricting input.
Read-only mode
Read-only mode prevents users from editing the content in the Block Editor while preserving the ability to view formatted text. 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. The content remains viewable with its formatting intact, but editing is restricted.
The following example demonstrates how to enable read-only mode in the Block Editor: