这次从OO5.3那个时代的接口,改到支持8.2接口,颇费周折。centos升级和docker升级 - Powered by MinDoc (itdos.net)
1. 首先是升级centos
手动升级centos7内核(版本自行选择,亲测内核下载链接有效)_centos内核下载-CSDN博客
2. 其次是升级docker
解决yum报错:错误:Invalid version flag: if - guuyoog - 博客园
CentOS安装Docker(超详细)-CSDN博客
3. 再次是修改engineercms的服务端
只改了一处,就是Changelog | ONLYOFFICE
所述的:documentType改为了word,cell和slide及pdf了。
Version 6.1
- The text, spreadsheet and presentation values for documentType parameter is deprecated, please use word, cell and slide values instead.
Version 8.0
- Added the pdf document type to the documentType parameter.
4. 最后是修改web页面
开始用了OO 的api中最全的config,结果excel可以编辑,word死活被锁定状态,只能看,不能编辑,后来用Check ONLYOFFICE Docs main functionality | ONLYOFFICE
用里面最简单的
<script type="text/javascript">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": "word","editorConfig": {"callbackUrl": "https://example.com/url-to-callback.ashx",},"height": "100%","width": "100%"});</script>
word就可以编辑了。看来其他基本是 “多余”的。
"customization": {"uiTheme": "theme-dark",
上面这行代码是暗黑模式。
计划支持token,本次暂时还是关闭了OO的token。