我正在使用Onlyoffice 5.0.3。我更改了用于在文件菜单下添加新菜单的Onlyoffice代码,如下图所示
case "approval":{
Common.UI.custom({
closable: false,
title: "Confirm",
msg: "Are you sure, do you want to confirm the Approve",
buttons: ["approve","reject"],
primary: approve,
iconCls:"warn",
callback: _.bind(function (e) {
if(e=="approve"){
// here i want to trigger event which is given in docEditor Api.
}
else{
}
}, this);
})
break;
}
我的问题必须触发docEditor API中提供的事件。
答案 0 :(得分:0)
使用Common.Gateway.eventName();
我触发了事件,该事件在docEditorAPI中给出。
答案 1 :(得分:-1)
在当前版本中无法执行此操作。 请直接联系ONLYOFFICE团队,讨论如何实现此选项的所有可能方式。