I am using Onlyoffice 5.0.3. I have altered Onlyoffice code for adding new menu under file menu shown in below image
and i have added action script also.
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;
}
my problem has to trigger an event which is given in docEditor API.