From 8ff4bcac99fc3c17ab96667a3d710b1be5eef3de Mon Sep 17 00:00:00 2001 From: Wolfgang Ginolas Date: Thu, 16 Feb 2023 11:02:23 +0100 Subject: [PATCH] Add draw.io read only mode --- www/drawio/inner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/drawio/inner.js b/www/drawio/inner.js index ff9817ae9..3528e23a0 100644 --- a/www/drawio/inner.js +++ b/www/drawio/inner.js @@ -88,7 +88,6 @@ define([ // This is called when the history is synced. "onContentUpdate" has already been called with the full content and the loading screen is being removed. framework.onReady(function (newPad) { - // Here you can focus any editable part, check the integrity of the current data or intialize some values }); // starting the CryptPad framework @@ -103,6 +102,8 @@ define([ embed: 1, drafts: 0, + chrome: framework.isReadOnly() ? 0 : 1, + // Hide save and exit buttons noSaveBtn: 1, saveAndExit: 0,