window.Asc.plugin.executeMethod ("GetMacros", callback)
Defines the method that allows getting the document macros.
This method should be used in the following way:
window.Asc.plugin.executeMethod ("GetMacros");
The method returns the Macros object containing the data about all the macros from the document in the following form (JSON):
{
"macrosArray" : array,
"current" : number
}
Parameter |
Description |
Type |
Example |
macrosArray |
An array of macros codes ([{"name": "Macros1", "value": "{macrosCode}"}]). |
array of objects |
|
current |
A current macros index. |
number |
1 |