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(); }); -
getMacroData(callback) -
Get the data saved in the saveMacro method.
Parameters:
Name Type Description callbackfunction to be passed the macro data.
Example
AP.require('confluence', function(confluence){ var macroData = confluence.getMacroData(function(data){ alert(data); }); }); -
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'}); });