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'?
What if you add a dummy parameter to your macro? Does it work then?
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 :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just put empty parameter tag like <parameters/> inside macro definition, parameter is not required but parameters tag is.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.