From 2c68dc443ad5ca6b2a83814208a996fc11b84f6e Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 11 Dec 2020 15:49:29 +0100 Subject: [PATCH] Fix scrambled data in spreadsheets: disable 'undo' --- www/common/onlyoffice/inner.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 881db3d06..7631d828a 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -775,6 +775,18 @@ define([ view: false }; }); + // Add an history keeper user to show that we're never alone + var hkId = Util.createRandomInteger(); + p.push({ + id: hkId, + idOriginal: String(hkId), + username: "History", + indexUser: i, + connectionId: Hash.createChannelId(), + isCloseCoAuthoring:false, + view: false + }); + i++; if (!myUniqueOOId) { myUniqueOOId = String(myOOId) + i; } p.push({ id: myUniqueOOId,