From 4b7c0eebcad71aec064a2a00c1930bc8eaa6dfd0 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 16 Sep 2024 12:53:51 +0300 Subject: [PATCH] Fix embedded --- apps/documenteditor/embed/js/ApplicationController.js | 2 +- apps/presentationeditor/embed/js/ApplicationController.js | 2 +- apps/spreadsheeteditor/embed/js/ApplicationController.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index cf86f15330..283a10b236 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -89,7 +89,7 @@ DE.ApplicationController = new(function(){ ttOffset[1] = 40; } - config.mode && (config.mode = 'view'); // always view for embedded + config.mode = 'view'; // always view for embedded config.canCloseEditor = false; var _canback = false; if (typeof config.customization === 'object') { diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index 10fcd09986..324d225c8f 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -86,7 +86,7 @@ PE.ApplicationController = new(function(){ $('#box-preview').addClass('top'); } - config.mode && (config.mode = 'view'); // always view for embedded + config.mode = 'view'; // always view for embedded config.canCloseEditor = false; var _canback = false; if (typeof config.customization === 'object') { diff --git a/apps/spreadsheeteditor/embed/js/ApplicationController.js b/apps/spreadsheeteditor/embed/js/ApplicationController.js index 83a22d7daf..ec5f22c09c 100644 --- a/apps/spreadsheeteditor/embed/js/ApplicationController.js +++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js @@ -86,7 +86,7 @@ SSE.ApplicationController = new(function(){ $('.viewer').addClass('top'); } - config.mode && (config.mode = 'view'); // always view for embedded + config.mode = 'view'; // always view for embedded config.canCloseEditor = false; var _canback = false; if (typeof config.customization === 'object') {