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

48 lines
1.2 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": {
"download": true,
"edit": "<%= editor.isEdit %>",
"review": true
}
},
"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.getServerUrl %>
}
},
"fileChoiceUrl": "<%= editor.fileChoiceUrl %>",
"plugins": <%- editor.plugins %>
}