I'm new to Confluence dev, and I'm trying to create a macro such that I need to show custom UI on editor context instead of Confluence's MacroBrowser taking some params and operating on them.
I need to open a custom dialog, where I essentially want to render an Iframe and take user input in that Iframe.
I checked https://www.slideshare.net/GoAtlassian/pimp-my-confluence-plugin-atlascamp-2011 but it uses AUI dialog(which is being deprecated) in AJS.MacroBrowser.setMacroJsOverride handler function to create a dialog.
3 things:
-Can I use the same approach to open dialog, since dialog API is getting deprecated and dialog2 seems to not come with a contructor as such? If not, please suggest how can I open a custom dialog?
-How can I render an Iframe in dialog2/dialog API? any reference will be helpful
-Can I override the macrobrowser and show contents instead loaded from a velocity template, where it will be more easy to render an iframe?
Please help.
Hello Farhat and welcome to the Community!
Something to be aware of is this is a support community and not often browsed by developers. We want to ensure you get the responses and answers you need so we would suggest you check out the Developer Community. The Developer Community may have more available resources to answer or address your developer questions.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://community.developer.atlassian.com/t/custom-macro-dialog-in-confluence-in-editor-context-override-macrobrowser/26677?u=farhat
Link to question on Developer Community
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.