Adds a new table of contents to the document at the current text input position.

<void> TableOfContentsCollection.add([<TableOfContentsCollectionAddParams> parameters], [<RequestTableOfContentsCallback> callback], [<ErrorCallback> errorCallback])


Parameter Description
parameters Optional. Combines the method parameters.
callback Optional. Receives the added table of contents object or null if something went wrong.
errorCallback Optional. Is called when the operation failed with an error.