diff --git a/cell/view/WorksheetView.js b/cell/view/WorksheetView.js index e5446d22b5..6a8f5eb992 100644 --- a/cell/view/WorksheetView.js +++ b/cell/view/WorksheetView.js @@ -1658,6 +1658,7 @@ function isAllowPasteLink(pastedWb) { this._prepareCellTextMetricsCache(); this.cellCommentator.updateActiveComment(); window['AscCommon'].g_specialPasteHelper.SpecialPasteButton_Update_Position(); + Asc.editor.toggleChartElementsCallback(); this.handlers.trigger("toggleAutoCorrectOptions", null, true); this.handlers.trigger("onDocumentPlaceChanged"); this._updateDrawingArea(); @@ -1681,6 +1682,7 @@ function isAllowPasteLink(pastedWb) { this._prepareCellTextMetricsCache(); this.cellCommentator.updateActiveComment(); window['AscCommon'].g_specialPasteHelper.SpecialPasteButton_Update_Position(); + Asc.editor.toggleChartElementsCallback(); this.handlers.trigger("onDocumentPlaceChanged"); this._updateDrawingArea(); @@ -11036,6 +11038,7 @@ function isAllowPasteLink(pastedWb) { this.cellCommentator.updateActiveComment(); this.cellCommentator.drawCommentCells(); window['AscCommon'].g_specialPasteHelper.SpecialPasteButton_Update_Position(); + Asc.editor.toggleChartElementsCallback(); this.handlers.trigger("toggleAutoCorrectOptions", true); //this.model.updateTopLeftCell(this.visibleRange); return this; @@ -11381,6 +11384,7 @@ function isAllowPasteLink(pastedWb) { this.cellCommentator.updateActiveComment(); this.cellCommentator.drawCommentCells(); window['AscCommon'].g_specialPasteHelper.SpecialPasteButton_Update_Position(); + Asc.editor.toggleChartElementsCallback(); this.handlers.trigger("toggleAutoCorrectOptions", true); //this.model.updateTopLeftCell(this.visibleRange); diff --git a/pdf/api.js b/pdf/api.js index 6b2e8cfedf..51561f1f04 100644 --- a/pdf/api.js +++ b/pdf/api.js @@ -467,7 +467,7 @@ }; PDFEditorApi.prototype.getGraphicController = function () { let oDoc = this.getPDFDoc(); - return oDoc.GetController(); + return oDoc ? oDoc.GetController() : null; }; PDFEditorApi.prototype.can_CopyCut = function() { if (!this.DocumentRenderer) diff --git a/slide/Drawing/HtmlPage.js b/slide/Drawing/HtmlPage.js index 8c420f8261..be7c973a7d 100644 --- a/slide/Drawing/HtmlPage.js +++ b/slide/Drawing/HtmlPage.js @@ -2876,6 +2876,9 @@ // update media control position this.m_oApi.onUpdateMediaPlayer(); AscCommon.g_specialPasteHelper.SpecialPasteButton_Update_Position(); + + // update position of toggle-chart-elements button + Asc.editor.toggleChartElementsCallback(); }; // Scrolls diff --git a/word/Drawing/HtmlPage.js b/word/Drawing/HtmlPage.js index ebdbc90845..b9a6515b19 100644 --- a/word/Drawing/HtmlPage.js +++ b/word/Drawing/HtmlPage.js @@ -3229,6 +3229,9 @@ function CEditorPage(api) if (this.m_bDocumentPlaceChangedEnabled) this.m_oApi.sendEvent("asc_onDocumentPlaceChanged"); + + // update position of toggle-chart-elements button + Asc.editor.toggleChartElementsCallback(); }; this.OnResize = function(isAttack)