ONLYOFFICE DocSpace released: improve document collaboration with offices, customers, and partners. Use it for free!
ONLYOFFICE DocSpace released

How do I use sdkjs dynamically to set the document read-only

I hope that the implementation can judge whether the user can edit according to the number of lines in the word document where the user’s mouse is located.
Now I can get the line number of the user, as shown below

Please tell me the api to set document read-only, thanks a lot

Hi @hufei

Please describe the issue in more details.

You can see all Advanced parameters (clickable)
and Document Permissions (edit)

I don’t mean the server document.
I pulled web-apps and sdkjs from github and now I can’t find the api available in sdkjs, for example read only

Hi @hufei

Please point me to the guide which you used. Your final goal isn’t clear for us at the moment. As mentioned before ‘Read’ mode is related to editor initialization config file.