1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

Update view_file_via_onlyoffice.html

This commit is contained in:
TMHBOFH
2017-05-19 22:33:05 +02:00
committed by GitHub
parent 3cbeb78340
commit eb7ccd6068

View File

@@ -24,7 +24,7 @@ var config = {
"documentType": "{{document_type}}", // 'text' | 'spreadsheet' | 'presentation', "documentType": "{{document_type}}", // 'text' | 'spreadsheet' | 'presentation',
"editorConfig": { "editorConfig": {
"callbackUrl": "{{ callback_url }}", "callbackUrl": "{{ callback_url }}",
"lang": "en-US", "lang": {% if ONLYOFFICE_EDITOR_LANGUAGE_SETTING %}"{{ ONLYOFFICE_EDITOR_LANGUAGE_SETTING }}"{% else %}"{{ LANGUAGE_CODE }}"{% endif %},
"mode": {% if can_edit %}"edit"{% else %}"view"{% endif %}, "mode": {% if can_edit %}"edit"{% else %}"view"{% endif %},
"user": { "user": {
"name": "{{ username|email2nickname }}" "name": "{{ username|email2nickname }}"