我正在使用 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 中给出的事件。