From d3939e87b256bdb9f3a45feb0addd2d20a6ed4ee Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 20 Feb 2020 16:39:50 +0100 Subject: [PATCH] Fix readOnly mode in spreadsheets --- www/common/onlyoffice/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 4270b0f4c..2f4bdf29b 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -110,7 +110,7 @@ define([ window.frames[0].editor.asc_setViewMode(!state); //window.frames[0].editor.setViewModeDisconnect(true); } catch (e) {} - if (!state) { + if (!state && !readOnly) { $('#cp-app-oo-editor').append(h('div#cp-app-oo-offline')); } debug(state);