The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to run HTML macro script in edit mode?

Miguel P
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!
August 3, 2021

So for certain Confluence pages with a template table, I want to create an HTML macro script that allows users to click a button and autopopulate cells in the template table with data retrieved from an API. The issue is that I want them to be able to do this inside the edit mode, so that they click the button and the changes are saved to the Confluence page.

The issue I'm running into is that the HTML macro doesn't seem to "run" while in edit mode, so I cannot get the script to run in edit mode and therefore I can't save any changes the script makes to the table.

Is there any way to get around this? Is it at all possible to get the macro to run in edit mode?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
April 12, 2023

Hi @Miguel P ,

unfortunately, in edit mode you can't do that. All macros, including HTML, are rendered in order to edit its content.

Fabio

TAGS
AUG Leaders

Atlassian Community Events