Hi, I'm trying to execute a window.alert() inside the click event handler of the publish button.
First, I tried with a $("#rte-button-adhoctasks").click() and AJS.bind(“init.rte”, function()) but doesn't work with any version. After that, I changed it to Confluence.Editor.addSaveHandler() and it work in some confluence versions (eg. 6.15.9) but still fails in others (eg. 6.10.1).
Am I missing something?