集成onlyoffice预览和在线编辑

This commit is contained in:
cwchen 2025-11-11 09:24:40 +08:00
parent 818b4e7566
commit 0b5017d0bb
1 changed files with 49 additions and 4 deletions

View File

@ -9,12 +9,57 @@ minio:
# onlyoffice配置
onlyoffice:
document-server: http://192.168.0.14:19840/
secret: IF8oJPkqTQPnrnYGk0115PA10sKCE05Z
secret: ZKfaySX7a1Tpg61sKCjAblMLzge5kW47
jwt-enabled: true
# onlyoffice 忽略的访问路径
ignoreUrl:
callBackUrl: /documents/callback
#minio:
# url: http://127.0.0.1:9005
# endpoint: http://127.0.0.1:9005
# url: http://192.168.31.170:9000
# endpoint: http://192.168.31.170:9000
# access-key: name
# secret-key: password
# bucket-name: smart-bid
# onlyoffice配置
only-office:
secret: N9yleoAAnWNo4VY4Dpe0ihH02LpQOigz
jwt-enabled: true
config:
document:
# 文档下载接口这个接口需要在springboot后端中实现
url: http://192.168.0.39:8080/documents/only/office/download
permissions:
# 是否可以编辑
edit: true
print: true
download: true
# 是否可以填写表格如果将mode参数设置为edit则填写表单仅对文档编辑器可用。 默认值与edit或review参数的值一致。
fillForms: false
# 跟踪变化
review: true
editorConfig:
# onlyoffice回调接口这个接口也需要在springboot后端中实现
callbackUrl: http://192.168.0.39:8080/smartBid/documents/callback
lang: zh-CN
coEditing:
mode: fast,
change: true
# 定制化配置
customization:
forcesave: true
autosave: false
comments: true
compactHeader: false
compactToolbar: true
compatibleFeatures: true
features:
# 是否开启拼写检查
spellcheck:
mode: true
change: true
region: zh-CN
type: desktop