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:
@@ -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 }}"
|
||||||
|
Reference in New Issue
Block a user