[DE] Disable document editing in view mode

This commit is contained in:
Julia Radzhabova
2024-01-15 18:35:34 +03:00
parent 925e83a613
commit a35d2882a0

View File

@ -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);
},