Fix loading images from storage
This commit is contained in:
parent
a7e19be18e
commit
e373415ee9
|
@ -1391,7 +1391,7 @@ define([
|
||||||
fileChoiceUrl: this.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
fileChoiceUrl: this.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
||||||
})).on('selectfile', function(obj, file){
|
})).on('selectfile', function(obj, file){
|
||||||
me.toolbar.fireEvent('insertimage', me.toolbar);
|
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');
|
Common.component.Analytics.trackEvent('ToolBar', 'Image');
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1382,7 +1382,7 @@ define([
|
||||||
fileChoiceUrl: me.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
fileChoiceUrl: me.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
||||||
})).on('selectfile', function(obj, file){
|
})).on('selectfile', function(obj, file){
|
||||||
me.toolbar.fireEvent('insertimage', me.toolbar);
|
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');
|
Common.component.Analytics.trackEvent('ToolBar', 'Image');
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
|
|
|
@ -857,7 +857,7 @@ define([
|
||||||
fileChoiceUrl: me.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
fileChoiceUrl: me.toolbar.mode.fileChoiceUrl.replace("{fileExt}", "").replace("{documentType}", "ImagesOnly")
|
||||||
})).on('selectfile', function(obj, file){
|
})).on('selectfile', function(obj, file){
|
||||||
me.toolbar.fireEvent('insertimage', me.toolbar);
|
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');
|
Common.component.Analytics.trackEvent('ToolBar', 'Image');
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue