Get Started
Plugins
Macros
More information
|
window.Asc.plugin.executeMethod ("AddContentControl", [args], callback)Description
Defines the method that allows adding an empty content control to the document. Usage
This method should be used in the following way: window.Asc.plugin.executeMethod ("AddContentControl", [type, commonPr]); Parameters
The Lock parameter can have the following values:
Returns
The method returns a JSON object containing the data about the created content control in the following form: { "Tag": "{tag}", "Id": 0, "Lock": 0, "InternalId": "1_713" } Example
window.Asc.plugin.executeMethod ("AddContentControl", [1, {"Id" : 7, "Tag" : "{tag}", "Lock" : 0}]); |