mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 20:47:06 +08:00
[DE] Disable document editing in view mode
This commit is contained in:
@ -1778,6 +1778,7 @@ define([
|
||||
} else if (mode==='review') {
|
||||
Common.NotificationCenter.trigger('reviewchanges:turn', true);
|
||||
}
|
||||
this.api.asc_setRestriction(mode==='view' ? Asc.c_oAscRestrictionType.View : Asc.c_oAscRestrictionType.None);
|
||||
}
|
||||
(!inViewMode || force) && Common.NotificationCenter.trigger('doc:mode-changed', mode);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user