Hi Ryan,
I'm currently working on a Connect Confluence add-on which makes use of your image placeholder feature for macros. One thing I miss there is the possibility to use a "uri-template" instead of an ordinary "uri" type:
"imagePlaceholder": {
"width": 100,
"height": 25,
"url": "/preview?pageId={
page.id}&pageVersion={page.version}¯oHash={macro.hash}",
"applyChrome": true
}
I need this in order to get the macro content to render a preview of it. This would allow a better user experience because the user would not need to go into the macro browser or click preview in the editor, but instead would always see the rendered macro while editing.
Is there a particular reason why "url" for "imagePlaceholder" just allows an ordinary URL without templates?
Or is there any other way to get the macro content in an imageplaceholder callback?
Thanks,
Michael