How do I make my macro come up with a template creation page just like Draw.io macro

I have a macro that currently renders an image placeholder on the confluence editor. Now the change I need to make is that when the user selects the macro from the editor while typing {macro … , and if my macro is selected, it should NOT render the image placeholder that it was doing before but bring up a template selection screen just like draw.io macro does.

Please provide any pointers to start with here. I am trying to look up in the macro documentation but unable to find something useful yet.

May I please have any suggestions on this. This seems to be some setting in the atlassian-plugin.xml but I am having a hard time figuring this out. It will really help if I get some pointers to start with here.

Here are some resources that may help you get started. Sorry for just dumping a bunch of links on you.

https://developer.atlassian.com/server/confluence/extending-the-macro-property-panel/
https://confluence.atlassian.com/pages/viewpage.action?pageId=225116740

https://bitbucket.org/resah/confluence-macro-tutorial/wiki/Home
https://bitbucket.org/resah/confluence-macro-tutorial/src/default/
https://bitbucket.org/resah/confluence-macro-tutorial/wiki/Home#markdown-header-editor

1 Like