diff --git a/apps/common/main/lib/model/Plugin.js b/apps/common/main/lib/model/Plugin.js index 6456647d1..46b31e418 100644 --- a/apps/common/main/lib/model/Plugin.js +++ b/apps/common/main/lib/model/Plugin.js @@ -56,6 +56,7 @@ define([ index: 0, icons: undefined, isViewer: false, + isDisplayedInViewer: true, EditorsSupport: ["word", "cell", "slide"], isVisual: false, isCustomWindow: false, diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 54b980fa4..98816920a 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -2099,7 +2099,7 @@ define([ var variationsArr = [], pluginVisible = false; item.variations.forEach(function(itemVar){ - var visible = (isEdit || itemVar.isViewer) && _.contains(itemVar.EditorsSupport, 'word'); + var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'word'); if ( visible ) pluginVisible = true; if (item.isUICustomizer ) { diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 996a82781..3012af9d0 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -1845,7 +1845,7 @@ define([ var variationsArr = [], pluginVisible = false; item.variations.forEach(function(itemVar){ - var visible = (isEdit || itemVar.isViewer) && _.contains(itemVar.EditorsSupport, 'slide'); + var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'slide'); if ( visible ) pluginVisible = true; if ( item.isUICustomizer ) { diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 7f86fea36..9a6cb6b81 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -2042,7 +2042,7 @@ define([ var variationsArr = [], pluginVisible = false; item.variations.forEach(function(itemVar){ - var visible = (isEdit || itemVar.isViewer) && _.contains(itemVar.EditorsSupport, 'cell'); + var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'cell'); if ( visible ) pluginVisible = true; if ( item.isUICustomizer ) {