Skip to main content

onChangeRestrictions

The function called when the restrictions in the editor are changed.

Parameters

NameData typeDescription
valuenumberThe restrictions value.
window.Asc.plugin.attachEditorEvent("onChangeRestrictions", (value) => {
if (value == 0) {
console.log('You are able to edit the document');
}
});