Inserts the content control containing data. The data is specified by the JS code for Document Builder, or by a link to the shared document.
Name | Type | Description |
arrDocuments | Array.<ContentControlPropertiesAndContent> | An array of properties and contents of the content control. |
var arrDocuments = [{ "Props": { "Id": 100, "Tag": "CC_Tag", "Lock": 3 }, "Script": "var oParagraph = Api.CreateParagraph();oParagraph.AddText('Hello world!');Api.GetDocument().InsertContent([oParagraph]);" }]; window.Asc.plugin.executeMethod ("InsertAndReplaceContentControls", [arrDocuments]);