From d864a672a5fa032cf000b0d9260677be40e289ee Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 13 Sep 2024 20:42:29 +0300 Subject: [PATCH 1/2] [Embed] Set view mode for embedded --- apps/documenteditor/embed/js/ApplicationController.js | 1 + apps/presentationeditor/embed/js/ApplicationController.js | 1 + apps/spreadsheeteditor/embed/js/ApplicationController.js | 1 + 3 files changed, 3 insertions(+) diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index d0092f1b8a..cf86f15330 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -89,6 +89,7 @@ DE.ApplicationController = new(function(){ ttOffset[1] = 40; } + config.mode && (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 c16c54ea34..10fcd09986 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -86,6 +86,7 @@ PE.ApplicationController = new(function(){ $('#box-preview').addClass('top'); } + config.mode && (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 cd8ce6541d..83a22d7daf 100644 --- a/apps/spreadsheeteditor/embed/js/ApplicationController.js +++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js @@ -86,6 +86,7 @@ SSE.ApplicationController = new(function(){ $('.viewer').addClass('top'); } + config.mode && (config.mode = 'view'); // always view for embedded config.canCloseEditor = false; var _canback = false; if (typeof config.customization === 'object') { From 4b7c0eebcad71aec064a2a00c1930bc8eaa6dfd0 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 16 Sep 2024 12:53:51 +0300 Subject: [PATCH 2/2] 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') {