diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 0bc80b97d..ed34a79cb 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -738,9 +738,10 @@ : "main"; var index = "/index.html"; - if (config.editorConfig && config.editorConfig.targetApp!=='desktop') { + if (config.editorConfig) { var customization = config.editorConfig.customization; - if ( typeof(customization) == 'object' && (customization.loaderName || customization.loaderLogo)) { + if ( typeof(customization) == 'object' && ( customization.toolbarNoTabs || + (config.editorConfig.targetApp!=='desktop') && (customization.loaderName || customization.loaderLogo))) { index = "/index_loader.html"; } } diff --git a/apps/common/main/lib/view/ReviewPopover.js b/apps/common/main/lib/view/ReviewPopover.js index a96e9ace6..a3f507da5 100644 --- a/apps/common/main/lib/view/ReviewPopover.js +++ b/apps/common/main/lib/view/ReviewPopover.js @@ -1162,9 +1162,9 @@ define([ insertEmailToTextbox: function(str, left, right) { var textBox = this.commentsView.getTextBox(), val = textBox.val(); - textBox.val(val.substring(0, left) + '+' + str + val.substring(right+1, val.length)); + textBox.val(val.substring(0, left) + '+' + str + ' ' + val.substring(right+1, val.length)); setTimeout(function(){ - textBox[0].selectionStart = textBox[0].selectionEnd = left + str.length + 1; + textBox[0].selectionStart = textBox[0].selectionEnd = left + str.length + 2; }, 10); }, diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 44de0321e..6c9c5b4b7 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -132,7 +132,10 @@ define([ "Table Index Cannot be Zero": this.txtTableInd, "Undefined Bookmark": this.txtUndefBookmark, "Unexpected End of Formula": this.txtEndOfFormula, - "Hyperlink": this.txtHyperlink + "Hyperlink": this.txtHyperlink, + "Error! Main Document Only.": this.txtMainDocOnly, + "Error! Not a valid bookmark self-reference.": this.txtNotValidBookmark, + "Error! No text of specified style in document.": this.txtNoText }; styleNames.forEach(function(item){ translate[item] = me['txtStyle_' + item.replace(/ /g, '_')] || item; @@ -360,8 +363,10 @@ define([ if (this.appOptions.location == 'us' || this.appOptions.location == 'ca') Common.Utils.Metric.setDefaultMetric(Common.Utils.Metric.c_MetricUnits.inch); - if (!this.editorConfig.customization || !(this.editorConfig.customization.loaderName || this.editorConfig.customization.loaderLogo)) + if (!( this.editorConfig.customization && ( this.editorConfig.customization.toolbarNoTabs || + (this.editorConfig.targetApp!=='desktop') && (this.editorConfig.customization.loaderName || this.editorConfig.customization.loaderLogo)))) { $('#editor_sdk').append('