赞
踩
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.com/url-to-example-document.docx"
},
"documentType": "text",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
},
"height": "100%
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。