From e26c6592dfc776a73ca0abaaefa857d8c09d60ee 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,