diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index 0498531af..340faedd8 100644 --- a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js @@ -203,7 +203,10 @@ define([ this.leftMenu.btnComments.hide(); } - this.leftMenu.setOptionsPanel('spellcheck', this.getApplication().getController('Spellcheck').getView('Spellcheck')); + if (this.mode.isEdit) { + this.leftMenu.btnSpellcheck.show(); + this.leftMenu.setOptionsPanel('spellcheck', this.getApplication().getController('Spellcheck').getView('Spellcheck')); + } this.mode.trialMode && this.leftMenu.setDeveloperMode(this.mode.trialMode); /** coauthoring end **/ diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 721d81d7b..fcaf306aa 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -702,7 +702,6 @@ define([ documentHolderController.setApi(me.api).loadConfig({config:me.editorConfig}); chatController.setApi(this.api).setMode(this.appOptions); - spellcheckController.setApi(this.api).setMode(this.appOptions); statusbarController.createDelayedElements(); statusbarController.setApi(me.api); @@ -713,6 +712,8 @@ define([ this.formulaInput = celleditorController.getView('CellEditor').$el.find('textarea'); if (me.appOptions.isEdit) { + spellcheckController.setApi(me.api).setMode(me.appOptions); + if (me.appOptions.canAutosave) { value = Common.localStorage.getItem("sse-settings-autosave"); if (value===null && me.appOptions.customization && me.appOptions.customization.autosave===false) diff --git a/apps/spreadsheeteditor/main/app/view/LeftMenu.js b/apps/spreadsheeteditor/main/app/view/LeftMenu.js index fbf55eeda..503ff62ca 100644 --- a/apps/spreadsheeteditor/main/app/view/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/view/LeftMenu.js @@ -149,6 +149,7 @@ define([ disabled: true, toggleGroup: 'leftMenuGroup' }); + this.btnSpellcheck.hide(); this.btnSpellcheck.on('click', _.bind(this.onBtnMenuClick, this)); this.btnSearch.on('click', _.bind(this.onBtnMenuClick, this)); diff --git a/apps/spreadsheeteditor/main/app/view/Spellcheck.js b/apps/spreadsheeteditor/main/app/view/Spellcheck.js index c439ce568..af76185ed 100644 --- a/apps/spreadsheeteditor/main/app/view/Spellcheck.js +++ b/apps/spreadsheeteditor/main/app/view/Spellcheck.js @@ -143,7 +143,7 @@ define([ this.cmbDictionaryLanguage = new Common.UI.ComboBox({ el : $('#spellcheck-dictionary-language'), style : 'width: 100%', - menuStyle : 'width: 100%;max-height: 200px;', + menuStyle : 'width: 100%;max-height: 163px;', editable : false, cls : 'input-group-nr' });