From a35d2882a0128cf232cb9f0943ca2e87a7587dd4 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 15 Jan 2024 18:35:34 +0300 Subject: [PATCH] [DE] Disable document editing in view mode --- apps/documenteditor/main/app/controller/Main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index ecbdef70ac..1d245586d9 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -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); },