From c34161a988647df2bbd643e513c92c340348b787 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 20 Feb 2018 18:36:00 +0100 Subject: [PATCH] Update oocell config --- www/oocell/doc.js | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/www/oocell/doc.js b/www/oocell/doc.js index e2f9a0467..96276c9ba 100644 --- a/www/oocell/doc.js +++ b/www/oocell/doc.js @@ -7,14 +7,27 @@ config = { }, "documentType": "spreadsheet", "editorConfig": { - "user": { - "id": "c0c3bf82-20d7-4663-bf6d-7fa39c598b1d", - "name": "John Smith" - } + customization: { + chat: false, + logo: { + url: "/bounce/#" + encodeURIComponent('https://www.onlyoffice.com') + } + }, + "user": { + "id": "c0c3bf82-20d7-4663-bf6d-7fa39c598b1d", + "name": "John Smith" + } }, "events": { - "onDocumentStateChange": function(evt) { console.log("in change"); }, - "onReady": function(evt) { console.log("in onReady"); } + "onDocumentStateChange": function (evt) { + if (evt.data) { + console.log('in change (local)'); + return; + } + console.log("in change (remote)"); + }, + "onReady": function(evt) { console.log("in onReady"); }, + "onAppReady": function(evt) { console.log("in onAppReady"); }, } }; window.onbeforeunload = null;