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.
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.