The Rich Text Editor allows users to open and view protected documents, identify the current user, and enable ranges permitted for the specified user or group.
In this demo, the Review ribbon tab contains custom commands that allow users to protect and unprotect the document (use the password "123"), switch between users to edit different text ranges, and customize or disable highlighting. The document includes permitted ranges for four users identified by user name: each user is authorized to edit a separate text area. The range that is enabled for the current user is highlighted.
Ribbon commands use the following API to perform these actions.