From 104cdd2a22e2982d120c386e3fbe805571213207 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 2 Jul 2020 23:20:43 +0300 Subject: [PATCH] Fix Bug 45007 --- apps/api/documents/api.js | 4 +- .../main/index_internal.html | 235 ++++++++++++++++++ .../main/index_internal.html.deploy | 232 +++++++++++++++++ build/spreadsheeteditor.json | 4 + 4 files changed, 474 insertions(+), 1 deletion(-) create mode 100644 apps/spreadsheeteditor/main/index_internal.html create mode 100644 apps/spreadsheeteditor/main/index_internal.html.deploy diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 71a006e8ff..542fb28167 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -770,7 +770,9 @@ if ( typeof(customization) == 'object' && ( customization.toolbarNoTabs || (config.editorConfig.targetApp!=='desktop') && (customization.loaderName || customization.loaderLogo))) { index = "/index_loader.html"; - } + } else if (config.editorConfig.mode == 'editdiagram' || config.editorConfig.mode == 'editmerge') + index = "/index_internal.html"; + } path += index; return path; diff --git a/apps/spreadsheeteditor/main/index_internal.html b/apps/spreadsheeteditor/main/index_internal.html new file mode 100644 index 0000000000..ffa6c2ac7d --- /dev/null +++ b/apps/spreadsheeteditor/main/index_internal.html @@ -0,0 +1,235 @@ + + + + ONLYOFFICE Document Editor + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/spreadsheeteditor/main/index_internal.html.deploy b/apps/spreadsheeteditor/main/index_internal.html.deploy new file mode 100644 index 0000000000..73ba16dc1b --- /dev/null +++ b/apps/spreadsheeteditor/main/index_internal.html.deploy @@ -0,0 +1,232 @@ + + + + ONLYOFFICE Document Editor + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + \ No newline at end of file diff --git a/build/spreadsheeteditor.json b/build/spreadsheeteditor.json index 8c95362b89..9001b36439 100644 --- a/build/spreadsheeteditor.json +++ b/build/spreadsheeteditor.json @@ -188,6 +188,10 @@ { "src": "../apps/spreadsheeteditor/main/index_loader.html.deploy", "dest": "../deploy/web-apps/apps/spreadsheeteditor/main/index_loader.html" + }, + { + "src": "../apps/spreadsheeteditor/main/index_internal.html.deploy", + "dest": "../deploy/web-apps/apps/spreadsheeteditor/main/index_internal.html" } ] },