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
- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...
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