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