Skip to main content

Field.isHyperlink Property

Returns a value specifying whether the field is a hyperlink.

Declaration

get isHyperlink(): boolean

Property Value

Type Description
boolean

true, if the field is a hyperlink; otherwise, false.

Remarks

//Gets URLs of all hyperlinks in the main sub-document
var fields = richEdit.document.mainSubDocument.fieldsInfo;
var hyperlinkUrls = [];
for(var i = 0; i < fields.length; i++) {
    var field = fields[i];
    if(field.isHyperlink && field.hyperlinkUri)
        hyperlinkUrls.push(field.hyperlinkUri);
}
See Also