Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom macro dialog in confluence in editor context | Override MacroBrowser

Farhat Abbas January 24, 2019

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.

1 answer

1 accepted

0 votes
Answer accepted
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 29, 2019

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

Farhat Abbas January 29, 2019

Thanks @Stephen Sifers. Didn't realize that.

Like Stephen Sifers likes this
Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events