Javascript: FormattedText.documentLinks Property
Description
Gets a collection of all links which point to targets in the same document.
Syntax
<DocumentLinkCollection> FormattedText.documentLinksExamples
The following example demonstrates FormattedText.documentLinks in a practical document-editing workflow. It gets a collection of all links which point to targets in the same document.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.textParts.getMainText(function(formattedText) {
formattedText.documentLinks.getCount(function(count) {
console.log("document links count:", count);
}, onTxError);
}, onTxError);Limitations
Read Only.