From 11ce1749b79453bde69e07e9d562f2edf7fc858a Mon Sep 17 00:00:00 2001 From: "Julia.Radzhabova" Date: Mon, 22 Sep 2025 12:29:34 +0300 Subject: [PATCH] Fix Bug 76826, bug 76775 --- apps/documenteditor/main/app/controller/Toolbar.js | 3 +-- apps/pdfeditor/main/app/controller/InsTab.js | 3 +-- .../main/app/controller/DocumentHolderExt.js | 2 +- apps/presentationeditor/main/app/controller/Toolbar.js | 3 +-- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 8d7f756d7f..f669149128 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -2615,8 +2615,7 @@ define([ chart.changeType(type); Common.NotificationCenter.trigger('edit:complete', this.toolbar); } else { - me.api.asc_addChartDrawingObject(type); - me.api.asc_editChartInFrameEditor(); + me.api.asc_addChartDrawingObject(type, undefined, true); me.toolbar.fireEvent('insertchart', me.toolbar); } }, diff --git a/apps/pdfeditor/main/app/controller/InsTab.js b/apps/pdfeditor/main/app/controller/InsTab.js index 6aee486fe4..5a5dfeac78 100644 --- a/apps/pdfeditor/main/app/controller/InsTab.js +++ b/apps/pdfeditor/main/app/controller/InsTab.js @@ -683,8 +683,7 @@ define([ chart.changeType(type); Common.NotificationCenter.trigger('edit:complete', this.toolbar); } else { - me.api.asc_addChartDrawingObject(type); - me.api.asc_editChartInFrameEditor(); + me.api.asc_addChartDrawingObject(type, undefined, true); me.toolbar.fireEvent('insertchart', me.toolbar); } }, diff --git a/apps/presentationeditor/main/app/controller/DocumentHolderExt.js b/apps/presentationeditor/main/app/controller/DocumentHolderExt.js index 256ccfdbcd..0ba5de4c8e 100644 --- a/apps/presentationeditor/main/app/controller/DocumentHolderExt.js +++ b/apps/presentationeditor/main/app/controller/DocumentHolderExt.js @@ -1632,7 +1632,7 @@ define([], function () { itemTemplate: _.template('
\">
') }); picker.on('item:click', function (picker, item, record, e) { - me.api.asc_addChartDrawingObject(record.get('type'), me._state.placeholderObj); + me.api.asc_addChartDrawingObject(record.get('type'), me._state.placeholderObj, true); }); } menuContainer.css({left: x, top : y}); diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index 0bd5383db2..8b2f3fcbd5 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -2197,8 +2197,7 @@ define([ chart.changeType(type); Common.NotificationCenter.trigger('edit:complete', this.toolbar); } else { - me.api.asc_addChartDrawingObject(type); - me.api.asc_editChartInFrameEditor(); + me.api.asc_addChartDrawingObject(type, undefined, true); me.toolbar.fireEvent('insertchart', me.toolbar); } },