diff --git a/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js b/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js index e899abffd7..0191463e3d 100644 --- a/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js +++ b/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js @@ -1294,13 +1294,14 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat var shapeprops = props.get_ShapeProperties(); var chartprops = props.get_ChartProperties(); + var pluginGuid = props.asc_getPluginGuid(); this.btnOriginalSize.setVisible(!(shapeprops || chartprops)); this.btnOriginalSize.setDisabled(props.get_ImageUrl()===null || props.get_ImageUrl()===undefined); this.btnsCategory[5].setVisible(shapeprops!==null && !shapeprops.get_FromChart()); // Shapes this.btnsCategory[6].setVisible(shapeprops!==null && !shapeprops.get_FromChart()); // Margins this.btnsCategory[3].setDisabled(props.get_FromGroup()); // Wrapping - this.btnsCategory[2].setVisible(!chartprops); // Rotation + this.btnsCategory[2].setVisible(!chartprops && (pluginGuid === null || pluginGuid === undefined)); // Rotation if (shapeprops) { this._objectType = Asc.c_oAscTypeSelectElement.Shape; diff --git a/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js b/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js index d65d735151..ca98d8db56 100644 --- a/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js +++ b/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js @@ -262,6 +262,9 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem value = props.asc_getDescription(); this.textareaAltDescription.val(value ? value : ''); + + var pluginGuid = props.asc_getPluginGuid(); + this.btnsCategory[1].setVisible(pluginGuid === null || pluginGuid === undefined); // Rotation } }, diff --git a/apps/spreadsheeteditor/main/app/view/ImageSettingsAdvanced.js b/apps/spreadsheeteditor/main/app/view/ImageSettingsAdvanced.js index 24b98a496b..93e88d8a1d 100644 --- a/apps/spreadsheeteditor/main/app/view/ImageSettingsAdvanced.js +++ b/apps/spreadsheeteditor/main/app/view/ImageSettingsAdvanced.js @@ -141,6 +141,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ImageSettingsAdvanced.temp this.chFlipHor.setValue(props.asc_getFlipH()); this.chFlipVert.setValue(props.asc_getFlipV()); + var pluginGuid = props.asc_getPluginGuid(); + this.btnsCategory[0].setVisible(pluginGuid === null || pluginGuid === undefined); // Rotation + this._changedProps = new Asc.asc_CImgProperty(); } },