Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create custom macro dialog?

Hi, I'm trying to create a custom dialog for my macro plugin. I tried using AJS.MacroBrowser.setMacroJsOverride but it is not working. Below is my code:

AJS.bind("init.rte", function(){    
AJS.MacroBrowser.setMacroJsOverride("dg-macro", {        
opener: function (macro) {            
contentId: Confluence.Editor.getContentId(),                
macro: {                    
name: "dg-macro",                    
params: {                        
search: "abcd",                        
placeholder: "efgh"                    
defaultParameterValue: "",                    
body: undefined                
}, macro);        

getDialogHTML() returns a markup string. 

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

402 views 15 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you