[DE][PE] Fix Bug 42696
This commit is contained in:
parent
4a9349373d
commit
2a141b4ceb
|
@ -128,7 +128,8 @@
|
||||||
compactHeader: false,
|
compactHeader: false,
|
||||||
toolbarNoTabs: false,
|
toolbarNoTabs: false,
|
||||||
toolbarHideFileName: false,
|
toolbarHideFileName: false,
|
||||||
reviewDisplay: 'original'
|
reviewDisplay: 'original',
|
||||||
|
spellcheck: true
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
autostart: ['asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}'],
|
autostart: ['asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}'],
|
||||||
|
|
|
@ -643,7 +643,7 @@ define([
|
||||||
|
|
||||||
onAppReady: function (config) {
|
onAppReady: function (config) {
|
||||||
var me = this;
|
var me = this;
|
||||||
if ( me.view && Common.localStorage.getBool(me.view.appPrefix + "settings-spellcheck", true) )
|
if ( me.view && Common.localStorage.getBool(me.view.appPrefix + "settings-spellcheck", !(config.customization && config.customization.spellcheck===false)))
|
||||||
me.view.turnSpelling(true);
|
me.view.turnSpelling(true);
|
||||||
|
|
||||||
if ( config.canReview ) {
|
if ( config.canReview ) {
|
||||||
|
|
|
@ -890,7 +890,7 @@ define([
|
||||||
value = Common.localStorage.getItem("de-show-tableline");
|
value = Common.localStorage.getItem("de-show-tableline");
|
||||||
me.api.put_ShowTableEmptyLine((value!==null) ? eval(value) : true);
|
me.api.put_ShowTableEmptyLine((value!==null) ? eval(value) : true);
|
||||||
|
|
||||||
value = Common.localStorage.getBool("de-settings-spellcheck", true);
|
value = Common.localStorage.getBool("de-settings-spellcheck", !(this.appOptions.customization && this.appOptions.customization.spellcheck===false));
|
||||||
Common.Utils.InternalSettings.set("de-settings-spellcheck", value);
|
Common.Utils.InternalSettings.set("de-settings-spellcheck", value);
|
||||||
me.api.asc_setSpellCheck(value);
|
me.api.asc_setSpellCheck(value);
|
||||||
|
|
||||||
|
|
|
@ -645,7 +645,7 @@ define([
|
||||||
var zf = (value!==null) ? parseInt(value) : (this.appOptions.customization && this.appOptions.customization.zoom ? parseInt(this.appOptions.customization.zoom) : -1);
|
var zf = (value!==null) ? parseInt(value) : (this.appOptions.customization && this.appOptions.customization.zoom ? parseInt(this.appOptions.customization.zoom) : -1);
|
||||||
(zf == -1) ? this.api.zoomFitToPage() : ((zf == -2) ? this.api.zoomFitToWidth() : this.api.zoom(zf>0 ? zf : 100));
|
(zf == -1) ? this.api.zoomFitToPage() : ((zf == -2) ? this.api.zoomFitToWidth() : this.api.zoom(zf>0 ? zf : 100));
|
||||||
|
|
||||||
value = Common.localStorage.getBool("pe-settings-spellcheck", true);
|
value = Common.localStorage.getBool("pe-settings-spellcheck", !(this.appOptions.customization && this.appOptions.customization.spellcheck===false));
|
||||||
Common.Utils.InternalSettings.set("pe-settings-spellcheck", value);
|
Common.Utils.InternalSettings.set("pe-settings-spellcheck", value);
|
||||||
me.api.asc_setSpellCheck(value);
|
me.api.asc_setSpellCheck(value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue