DS Server

Javascript: FormattedText.hypertextLinks Property

Property|Introduced in 28.0

Description

Gets a collection of all hypertext links.

Syntax

<HypertextLinkCollection> FormattedText.hypertextLinks

Examples

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.