Interact with the confluence macro editor.
Methods
-
closeMacroEditor() -
Closes the macro editor, if it is open. This call does not save any modified parameters to the macro, and saveMacro should be called first if necessary.
Example
AP.require('confluence', function(confluence){ confluence.closeMacroEditor(); }); -
saveMacro(data) -
Save a macro with data that can be accessed when viewing the confluence page.
Parameters:
Name Type Description dataObject to be saved with the macro.
Example
AP.require('confluence', function(confluence){ confluence.saveMacro({foo: 'bar'}); });