EngineerCMS完整版支持OnlyOffice8.2文档协作

这次从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 textspreadsheet and presentation values for documentType parameter is deprecated, please use wordcell 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。 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值