Add draw.io read only mode

This commit is contained in:
Wolfgang Ginolas 2023-02-16 11:02:23 +01:00
parent 39ceaf7294
commit 8ff4bcac99

View File

@ -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,