Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Event handler of the publish button

andrea
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 20, 2019

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
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 3, 2019

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.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events