My trivial macro allows users to search for images via external API, and then places it on a confluence page. I have
editor and it works. StaticContentMacro renders an
Question: is it possible for a macro to inject and display a page attachment instead? Same way as default “Insert Image” action does?
I was looking around
AP.confluence to call something other than
saveMacro. I was also checking Confluence REST API, but getting page content to alter it and save back doesn’t sound like a safe idea. Especially that I’m not aware of location in which user triggered the macro.
Ideas? Or not possible?