setMacroJsOverride for macro with no parameters

robert_egan_305 July 23, 2020

I have a macro with no parameters. All the content is in the body.

In the past I have called setMacroJsOverride to define an 'opener' callback. I still want to do that with this macro, except it seems the editor does not call the opener when the macro has no parameters.

What callback should I define instead of 'opener'?

1 answer

1 accepted

0 votes
Answer accepted
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2020

What if you add a dummy parameter to your macro? Does it work then?

robert_egan_305 July 24, 2020

Yes. I decided to add a parameter called "description" and make it required. Which was probably a good idea anyway, considering how poorly developers document their content :)

Yusuf TAMBAG September 14, 2020

Just put empty parameter tag like <parameters/> inside macro definition, parameter is not required but parameters tag is.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events