I'm running a JS Script on Confluence adding a HTML content to modify some tables and it's working good, But I would like to run that script even when the users are editing the Confluence Page, is there a way to run the scripts on the edit view?
If yes, can you provide the documentation
If you apply the JS to the Custom HTML section, then it will show up on every page, regardless of whether you are in view or edit mode:
You have to edit the page layout file (page.vmd).
There you just can insert a code block like this:
#if ($mode == "edit")
DO JS STUFF
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