This example demonstrates document protection support in document editor to restrict the types of changes can be made to the document by a user/user group.To unprotect the document, use password '123'.
In this demo, the Document editor opens a protected document that includes permitted ranges for two users identified by email: each user is authorized to edit a separate text area. You can switch between the current user to edit different parts by selecting dropdown list in User permissions pane. User can add the user in dropdown who have editing permission in document by using addItem method. The range that is enabled for the current user is highlighted. You can disable the highlighting or customize its color using the corresponding demo’s elements. More information about the document editor features can be found in this documentation section.