From 0f41dddf92e166e87b9bedce88c1eaec1d322efd Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 21 Jan 2020 17:50:23 +0100 Subject: [PATCH] Fix OnlyOffice UI in readonly mode --- www/common/onlyoffice/inner.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 173cd4970..673078862 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -773,7 +773,13 @@ define([ '#file-menu-panel { top: 28px !important; }' + // Position of the "File" menu '#left-btn-spellcheck, #left-btn-about { display: none !important; }'+ 'div.btn-users.dropdown-toggle { display: none; !important }'; + if (readOnly) { + css += '#toolbar { display: none !important; }'; + } $('