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('
' + '
'.repeat(20) + '
'); + } Common.Controllers.Desktop.init(this.appOptions); }, @@ -2464,7 +2469,10 @@ define([ textCustomLoader: 'Please note that according to the terms of the license you are not entitled to change the loader.
Please contact our Sales Department to get a quote.', txtHyperlink: 'Hyperlink', waitText: 'Please, wait...', - errorFileSizeExceed: 'The file size exceeds the limitation set for your server.
Please contact your Document Server administrator for details.' + errorFileSizeExceed: 'The file size exceeds the limitation set for your server.
Please contact your Document Server administrator for details.', + txtMainDocOnly: 'Error! Main Document Only.', + txtNotValidBookmark: 'Error! Not a valid bookmark self-reference.', + txtNoText: 'Error! No text of specified style in document.' } })(), DE.Controllers.Main || {})) }); \ No newline at end of file diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 002df4c74..704255430 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -802,7 +802,7 @@ define([ need_disable = paragraph_locked || header_locked || in_para && !can_add_image || in_equation || control_plain; toolbar.btnInsertImage.setDisabled(need_disable); - toolbar.btnInsertTextArt.setDisabled(need_disable || !can_add_image || in_image || in_footnote); + toolbar.btnInsertTextArt.setDisabled(need_disable || in_footnote); if (in_chart !== this._state.in_chart) { toolbar.btnInsertChart.updateHint(in_chart ? toolbar.tipChangeChart : toolbar.tipInsertChart); diff --git a/apps/documenteditor/main/index.html b/apps/documenteditor/main/index.html index bf62d1c20..9c2093f88 100644 --- a/apps/documenteditor/main/index.html +++ b/apps/documenteditor/main/index.html @@ -220,7 +220,18 @@ -
+
+
+
+
+ + +
+
+
+
+
+