Files
document-server-integration/web/documentserver-example/nodejs/views/config.ejs
2017-10-19 16:15:39 +03:00

50 lines
1.3 KiB
Plaintext

"width": "100%",
"height": "100%",
"type": "<%- editor.type %>",
"documentType": "<%- editor.documentType %>",
"token": "<%- editor.token %>",
"document": {
"title": "<%- file.name %>",
"url": "<%- file.uri %>",
"fileType": "<%- file.ext %>",
"key": "<%- editor.key %>",
"info": {
"author": "Me",
"created": "<%- file.created %>"
},
"permissions": {
"comment": <%- editor.comment %>,
"download": true,
"edit": <%- editor.isEdit %>,
"modifyFilter": <%- editor.modifyFilter %>,
"review": <%- editor.review %>
}
},
"editorConfig": {
"mode": "<%- editor.mode %>",
"lang": "<%- editor.lang %>",
"callbackUrl": "<%- editor.callbackUrl %>",
"user": {
"id": "<%- editor.userid %>",
"name": "<%- editor.name %>"
},
"embedded": {
"saveUrl": "<%- file.uri %>",
"embedUrl": "<%- file.uri %>",
"shareUrl": "<%- file.uri %>",
"toolbarDocked": "top"
},
"customization": {
"about": true,
"chat": true,
"comments": true,
"feedback": true,
"forcesave": false,
"goback": {
"url": "<%- editor.backUrl %>"
}
},
"fileChoiceUrl": "<%- editor.fileChoiceUrl %>",
"plugins": <%- editor.plugins %>
}