Set asc_CDocInfo.put_СoEditingMode
This commit is contained in:
parent
d2dc2881cc
commit
70f5a0ef62
|
@ -464,6 +464,9 @@ define([
|
|||
docInfo.put_Lang(this.editorConfig.lang);
|
||||
docInfo.put_Mode(this.editorConfig.mode);
|
||||
|
||||
if (typeof this.editorConfig.coEditing == 'object' && this.editorConfig.coEditing.mode!==undefined)
|
||||
docInfo.put_CoEditingMode(this.editorConfig.coEditing.mode);
|
||||
|
||||
var enable = !this.editorConfig.customization || (this.editorConfig.customization.macros!==false);
|
||||
docInfo.asc_putIsEnabledMacroses(!!enable);
|
||||
enable = !this.editorConfig.customization || (this.editorConfig.customization.plugins!==false);
|
||||
|
|
|
@ -132,7 +132,10 @@ class MainController extends Component {
|
|||
docInfo.put_EncryptedInfo(this.editorConfig.encryptionKeys);
|
||||
docInfo.put_Lang(this.editorConfig.lang);
|
||||
docInfo.put_Mode(this.editorConfig.mode);
|
||||
|
||||
|
||||
if (typeof this.editorConfig.coEditing == 'object' && this.editorConfig.coEditing.mode!==undefined)
|
||||
docInfo.put_CoEditingMode(this.editorConfig.coEditing.mode);
|
||||
|
||||
let enable = !this.editorConfig.customization || (this.editorConfig.customization.macros !== false);
|
||||
docInfo.asc_putIsEnabledMacroses(!!enable);
|
||||
enable = !this.editorConfig.customization || (this.editorConfig.customization.plugins !== false);
|
||||
|
|
|
@ -420,7 +420,10 @@ define([
|
|||
docInfo.put_EncryptedInfo(this.editorConfig.encryptionKeys);
|
||||
docInfo.put_Lang(this.editorConfig.lang);
|
||||
docInfo.put_Mode(this.editorConfig.mode);
|
||||
|
||||
|
||||
if (typeof this.editorConfig.coEditing == 'object' && this.editorConfig.coEditing.mode!==undefined)
|
||||
docInfo.put_CoEditingMode(this.editorConfig.coEditing.mode);
|
||||
|
||||
var enable = !this.editorConfig.customization || (this.editorConfig.customization.macros!==false);
|
||||
docInfo.asc_putIsEnabledMacroses(!!enable);
|
||||
enable = !this.editorConfig.customization || (this.editorConfig.customization.plugins!==false);
|
||||
|
|
|
@ -124,6 +124,9 @@ class MainController extends Component {
|
|||
docInfo.put_Lang(this.editorConfig.lang);
|
||||
docInfo.put_Mode(this.editorConfig.mode);
|
||||
|
||||
if (typeof this.editorConfig.coEditing == 'object' && this.editorConfig.coEditing.mode!==undefined)
|
||||
docInfo.put_CoEditingMode(this.editorConfig.coEditing.mode);
|
||||
|
||||
let enable = !this.editorConfig.customization || (this.editorConfig.customization.macros !== false);
|
||||
docInfo.asc_putIsEnabledMacroses(!!enable);
|
||||
enable = !this.editorConfig.customization || (this.editorConfig.customization.plugins !== false);
|
||||
|
|
|
@ -495,6 +495,9 @@ define([
|
|||
docInfo.put_Lang(this.editorConfig.lang);
|
||||
docInfo.put_Mode(this.editorConfig.mode);
|
||||
|
||||
if (typeof this.editorConfig.coEditing == 'object' && this.editorConfig.coEditing.mode!==undefined)
|
||||
docInfo.put_CoEditingMode(this.editorConfig.coEditing.mode);
|
||||
|
||||
var enable = !this.editorConfig.customization || (this.editorConfig.customization.macros!==false);
|
||||
docInfo.asc_putIsEnabledMacroses(!!enable);
|
||||
enable = !this.editorConfig.customization || (this.editorConfig.customization.plugins!==false);
|
||||
|
|
|
@ -171,6 +171,9 @@ class MainController extends Component {
|
|||
docInfo.put_Lang(this.editorConfig.lang);
|
||||
docInfo.put_Mode(this.editorConfig.mode);
|
||||
|
||||
if (typeof this.editorConfig.coEditing == 'object' && this.editorConfig.coEditing.mode!==undefined)
|
||||
docInfo.put_CoEditingMode(this.editorConfig.coEditing.mode);
|
||||
|
||||
const appOptions = this.props.storeAppOptions;
|
||||
let enable = !appOptions.customization || (appOptions.customization.macros !== false);
|
||||
docInfo.asc_putIsEnabledMacroses(!!enable);
|
||||
|
|
Loading…
Reference in a new issue