Fix Bug 50298

This commit is contained in:
Julia Radzhabova 2021-05-11 15:24:53 +03:00
parent 35e132ce68
commit be4a444adb
3 changed files with 3 additions and 3 deletions

View file

@ -1537,7 +1537,7 @@ define([
this.toolbar.fireEvent('insertimage', this.toolbar);
if (this.api)
this.api.asc_addImage();
setTimeout(function() {me.api.asc_addImage();}, 1);
Common.NotificationCenter.trigger('edit:complete', me.toolbar);
Common.component.Analytics.trackEvent('ToolBar', 'Image');

View file

@ -1556,7 +1556,7 @@ define([
if (opts === 'file') {
me.toolbar.fireEvent('insertimage', this.toolbar);
me.api.asc_addImage();
setTimeout(function() {me.api.asc_addImage();}, 1);
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
Common.component.Analytics.trackEvent('ToolBar', 'Image');

View file

@ -858,7 +858,7 @@ define([
this.toolbar.fireEvent('insertimage', this.toolbar);
if (this.api)
this.api.asc_addImage();
setTimeout(function() {me.api.asc_addImage();}, 1);
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
Common.component.Analytics.trackEvent('ToolBar', 'Image');