跳到主要内容

onChangeRestrictions

当编辑器中的限制更改时调用的函数。

参数

名称数据类型描述
valuenumber限制值。
window.Asc.plugin.attachEditorEvent("onChangeRestrictions", (value) => {
if (value == 0) {
console.log('You are able to edit the document');
}
});