diff --git a/apps/documenteditor/main/app/template/ParagraphSettingsAdvanced.template b/apps/documenteditor/main/app/template/ParagraphSettingsAdvanced.template
index 603f9d24b..c510b0b83 100644
--- a/apps/documenteditor/main/app/template/ParagraphSettingsAdvanced.template
+++ b/apps/documenteditor/main/app/template/ParagraphSettingsAdvanced.template
@@ -5,7 +5,7 @@
+
diff --git a/apps/documenteditor/main/app/view/ParagraphSettingsAdvanced.js b/apps/documenteditor/main/app/view/ParagraphSettingsAdvanced.js
index f6eacabf7..c07b8bbc4 100644
--- a/apps/documenteditor/main/app/view/ParagraphSettingsAdvanced.js
+++ b/apps/documenteditor/main/app/view/ParagraphSettingsAdvanced.js
@@ -119,8 +119,8 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
];
this._arrOutlinelevel = [{displayValue: this.textBodyText, value: -1}];
- for (var i=1; i<10; i++) {
- this._arrOutlinelevel.push({displayValue: this.textLevel + ' ' + i, value: i});
+ for (var i=0; i<9; i++) {
+ this._arrOutlinelevel.push({displayValue: this.textLevel + ' ' + (i+1), value: i});
}
this._arrTabAlign = [
@@ -301,7 +301,7 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
style: 'width: 174px;',
menuStyle : 'min-width: 174px;'
});
- this.cmbOutlinelevel.setValue('');
+ this.cmbOutlinelevel.setValue(-1);
this.cmbOutlinelevel.on('selected', _.bind(this.onOutlinelevelSelect, this));
// Line & Page Breaks
@@ -890,6 +890,8 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
this.tabList.selectByIndex(0);
}
+ this.cmbOutlinelevel.setValue(props.get_OutlineLvl()!==undefined ? props.get_OutlineLvl() : -1);
+
this._noApply = false;
this._changedProps = new Asc.asc_CParagraphProperty();
@@ -1425,7 +1427,9 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
},
onOutlinelevelSelect: function(combo, record) {
-
+ if (this._changedProps) {
+ this._changedProps.put_OutlineLvl(record.value>-1 ? record.value: undefined);
+ }
},
textTitle: 'Paragraph - Advanced Settings',
@@ -1497,7 +1501,7 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
textFirstLine: 'First line',
textHanging: 'Hanging',
textJustified: 'Justified',
- textBodyText: 'BodyText',
+ textBodyText: 'Basic Text',
textLevel: 'Level',
strIndentsOutlinelevel: 'Outline level',
strIndent: 'Indents',
diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json
index e971f3a10..81107c503 100644
--- a/apps/documenteditor/main/locale/en.json
+++ b/apps/documenteditor/main/locale/en.json
@@ -1736,7 +1736,7 @@
"DE.Views.ParagraphSettingsAdvanced.textAtLeast": "At least",
"DE.Views.ParagraphSettingsAdvanced.textAuto": "Multiple",
"DE.Views.ParagraphSettingsAdvanced.textBackColor": "Background Color",
- "DE.Views.ParagraphSettingsAdvanced.textBodyText": "BodyText",
+ "DE.Views.ParagraphSettingsAdvanced.textBodyText": "Basic Text",
"DE.Views.ParagraphSettingsAdvanced.textBorderColor": "Border Color",
"DE.Views.ParagraphSettingsAdvanced.textBorderDesc": "Click on diagram or use buttons to select borders and apply chosen style to them",
"DE.Views.ParagraphSettingsAdvanced.textBorderWidth": "Border Size",