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?
Welcome to Atlassian Community. Happy to help!
Could you help me to understand what it is you're trying to do? I suspect that you might be attempting to develop an add-on for Confluence.
If so, you might want to check instead with our Developer Community. That community is more focused on developing for Atlassian products, whereas this community is for helping end-users mostly.
Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events