I am wondering if there is a way to call AJS.MacroBrowser.setMacroJsOverride() outside of a plugin? For example, calling AJS.MacroBrowser.setMacroJsOverride(“my-macro”, {opener: …}) from the customHTML page or adding it to one of the pages in the Layouts section?
I know I can call this within a plugin but that’s not what I am looking to do. When I try calling it from the customHTML section or a layout page it says: TypeError: Cannot read property ‘setMacroJsOverride’ of undefined.
Is this something that is just not possible or is there another JS call that does something similar that can be used outside a plugin?