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(); }