From d5dce6ac22254b1703655fc587b58cc3f67b1f67 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 27 Mar 2018 14:03:30 +0200 Subject: [PATCH] Fix config --- www/common/onlyoffice/inner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 45314e972..aa3fa6085 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -118,13 +118,14 @@ define([ }, "onReady": function(/*evt*/) { console.log("in onReady"); }, "onAppReady": function(/*evt*/) { console.log("in onAppReady"); }, + "onDownloadAs": function (evt) { console.log("in onDownloadAs", evt); } } }; window.onbeforeunload = function () { var ifr = document.getElementsByTagName('iframe')[0]; if (ifr) { ifr.remove(); } }; - APP.docEditor = new DocsAPI.DocEditor("cp-app-oo-placeholder", window.config); + APP.docEditor = new DocsAPI.DocEditor("cp-app-oo-placeholder", APP.ooconfig); }; var readOnly = false;