admin管理员组

文章数量:1549934

onlyoffice服务在线编辑文档保存解析

编辑历史:

2018.6.28 小赖 文档初始化

最近使用onlyoffice的document服务,做office文档在线编辑与查看的功能;这篇文章主要帮助大家可以在线文档的编辑回调,希望会对大家有所帮助。

1.开发前提

搭建onlyoffice document服务

documentserver代表服务器的域名或者ip+port

2.测试+解释onlyoffice的config

官方给的查看word文档(docx)的config

window.docEditor = new DocsAPI.DocEditor("placeholder",

{

"document": {

"fileType": "docx",

"key": "E7FAFC9C22A8",

"title": "Example Document Title.docx",

"url": "https://example/url-to-example-document.docx"

},

"documentType": "text",

"editorConfig": {

"callbackUrl": "https://example/url-to-callback.ashx",

},

"height": "100%

本文标签: 在线自动保存编辑文档ONLYOFFICE