From e373415ee9de8db95cd53cd8344b925ec1834394 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 28 Feb 2019 17:34:48 +0300 Subject: [PATCH] Fix loading images from storage --- apps/documenteditor/main/app/controller/Toolbar.js | 2 +- apps/presentationeditor/main/app/controller/Toolbar.js | 2 +- apps/spreadsheeteditor/main/app/controller/Toolbar.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 321f0ea88..2dc37ced3 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -1391,7 +1391,7 @@ define([ fileChoiceUrl: this.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly") })).on('selectfile', function(obj, file){ me.toolbar.fireEvent('insertimage', me.toolbar); - me.api.AddImageUrl(file.url); + me.api.AddImageUrl(file.url, undefined, true);// for loading from storage Common.component.Analytics.trackEvent('ToolBar', 'Image'); }).show(); } diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index fc0b93b4c..b48f04afb 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -1382,7 +1382,7 @@ define([ fileChoiceUrl: me.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly") })).on('selectfile', function(obj, file){ me.toolbar.fireEvent('insertimage', me.toolbar); - me.api.AddImageUrl(file.url); + me.api.AddImageUrl(file.url, undefined, true);// for loading from storage; Common.component.Analytics.trackEvent('ToolBar', 'Image'); }).show(); } diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 201b3c84b..14ba415f2 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -857,7 +857,7 @@ define([ fileChoiceUrl: me.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly") })).on('selectfile', function(obj, file){ me.toolbar.fireEvent('insertimage', me.toolbar); - me.api.asc_addImageDrawingObject(file.url); + me.api.asc_addImageDrawingObject(file.url, undefined, true);// for loading from storage; Common.component.Analytics.trackEvent('ToolBar', 'Image'); }).show(); }