I have a page in Confluence that heavily uses the expand macro, but now we want to remove these macros while keeping the content intact. The issue is that when I try to copy and paste the content from the expand macro, the process becomes tedious and unreliable. Here's what's happening:
What I'm looking for is a way to remove all the expand macros from the page while keeping their content intact, ideally in a quicker, more efficient way. Is there a better approach for handling this?
@Amanda Tappo Welcome to the Atlassian Community.
According to this recent article (https://community.atlassian.com/t5/Confluence-articles/Nest-elements-using-drag-and-drop/ba-p/2848334), you should be able to drag-and-drop the content in the expand to elsewhere on the page. From my own little experiment with an expand that contains a bulleted list, I was able to click the holder next to the first list item and drag the entire list to another spot on the page. You cannot move the text of your expand macro header in this way, but you can copy and paste that (if you want it) or type something else (a heading maybe) in above the text.
If this does not work for you, you could ask your question on that post to get assistance from the author.
when you use plugins like Source Editor or get the content of your page via REST API you could remove the tags of the expand macros within your page in bulk. This could safe you some time but requires some technical skill/understanding of the Confluence format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.