It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Event handler of the publish button

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?

1 answer

0 votes

Hello Andrea,

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.



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

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...

294 views 9 7
Join discussion

Community Events

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

Events near you