Try now New API BETA
Try out the new view and capabilities of the API documentation
Sets the document editing restrictions.
The document editing restrictions.
window.Asc.plugin.executeMethod("SetEditingRestrictions", ["readOnly"]);