随着版本 7.3 新功能的发布,我们也对编辑器、插件以及文档生成器的 API 进行了更新。在下方了解更多详情。
从现在开始,您可在 WOPI 集成中使用二进制格式,如 doc、ppt 以及 xls。我们现已实现了相应方案,其中包括 WOPI 发现中的转换操作。其会将将二进制文件转换为 docx、pptx 以及 xlsx 以便进一步编辑。
此外我们还添加了 WOPI 转换 API 以便轻松处理不同的办公文件格式。
<form action="https://documentserver/cool/convert-to/docx" enctype="multipart/form-data" method="post"> File: <input type="file" name="data"><br/> <input type="submit" value="Convert to DOCX"> </form>
这里的进步一增强还有:
最新添加的 document.referenceData 参数定义了由集成器生成、用于在系统中对文件进行识别的对象。
搭配已实现的 setReferenceData 方法和 onRequestReferenceData 事件,其现在可使用文件链接来进行数据刷新,例如:用户可通过点击外部链接对话框中的相应按钮来更新从外部文件插入的值。了解更多
var onRequestReferenceData = function () { var referenceData = event.data.referenceData; var path = event.data.path; ... docEditor.setReferenceData({ "fileType": "xlsx", "path": "sample.xlsx", "referenceData": { "fileKey": "BCFA2CED", "instanceId": "https://example.com" }, "url": "https://example.com/url-to-example-document.xlsx" }); }; var docEditor = new DocsAPI.DocEditor("placeholder", { "events": { "onRequestReferenceData": onRequestReferenceData, ... }, ... });
拥有扩展许可的 ONLYOFFICE 文档开发者版用户可通过配置文件使用对编辑器前端界面进行定制的全新选项:
下方提供了有关 OnDropEvent 方法的代码示例:
window.Asc.plugin.executeMethod("OnDropEvent", [{ type: "ondrop", x : pos.x, y : pos.y, text : "test text", html : "test html" }]);
获取最新版本的 ONLYOFFICE 文档开发者版:
在 DocBuilder API 中,我们添加了许多新的注释、内容/图表以及其他方法,包括:
请查看新方法的完整列表。
请注意:目前已可使用更新后的 DocBuilder API。ONLYOFFICE 文档生成器的安装文件将很快更新至 v7.3。
This website uses cookies. By continuing to browse the website you agree to our privacy policy.
our privacy policy