Skip to main content

GetRestrictions

Returns the restrictions the editor currently applies to the document.

Syntax​

expression.GetRestrictions();

expression - A variable that represents an Api class.

Parameters​

This method doesn't have any parameters.

Returns​

EditorRestrictions

Example​

window.Asc.plugin.executeMethod("GetRestrictions", [], function(restrictions) {
if (restrictions & 0x80)
console.log("The document cannot be changed");
});