From 68397ea56b2c8a8bb024d7c4db811845a75dcace Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 29 Mar 2022 11:08:54 +0300 Subject: [PATCH] Get ole object --- apps/documenteditor/main/app/view/ImageSettings.js | 2 +- apps/presentationeditor/main/app/view/ImageSettings.js | 2 +- apps/spreadsheeteditor/main/app/view/ImageSettings.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/main/app/view/ImageSettings.js b/apps/documenteditor/main/app/view/ImageSettings.js index 54bba15f1..df4817e88 100644 --- a/apps/documenteditor/main/app/view/ImageSettings.js +++ b/apps/documenteditor/main/app/view/ImageSettings.js @@ -182,7 +182,7 @@ define([ this.btnEditObject.on('click', _.bind(function(btn){ if (this.api) { - var oleobj = this.api.asc_canEditTableOleObject(); + var oleobj = this.api.asc_canEditTableOleObject(true); if (oleobj) { var oleEditor = DE.getController('Common.Controllers.ExternalOleEditor').getView('Common.Views.ExternalOleEditor'); if (oleEditor) { diff --git a/apps/presentationeditor/main/app/view/ImageSettings.js b/apps/presentationeditor/main/app/view/ImageSettings.js index c0845cb8b..9eb8ef3e9 100644 --- a/apps/presentationeditor/main/app/view/ImageSettings.js +++ b/apps/presentationeditor/main/app/view/ImageSettings.js @@ -149,7 +149,7 @@ define([ this.btnOriginalSize.on('click', _.bind(this.setOriginalSize, this)); this.btnEditObject.on('click', _.bind(function(btn){ if (this.api) { - var oleobj = this.api.asc_canEditTableOleObject(); + var oleobj = this.api.asc_canEditTableOleObject(true); if (oleobj) { var oleEditor = PE.getController('Common.Controllers.ExternalOleEditor').getView('Common.Views.ExternalOleEditor'); if (oleEditor) { diff --git a/apps/spreadsheeteditor/main/app/view/ImageSettings.js b/apps/spreadsheeteditor/main/app/view/ImageSettings.js index 6fdbec171..65a3bbf86 100644 --- a/apps/spreadsheeteditor/main/app/view/ImageSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ImageSettings.js @@ -216,7 +216,7 @@ define([ this.btnOriginalSize.on('click', _.bind(this.setOriginalSize, this)); this.btnEditObject.on('click', _.bind(function(btn){ if (this.api) { - var oleobj = this.api.asc_canEditTableOleObject(); + var oleobj = this.api.asc_canEditTableOleObject(true); if (oleobj) { var oleEditor = SSE.getController('Common.Controllers.ExternalOleEditor').getView('Common.Views.ExternalOleEditor'); if (oleEditor) {