Javascript: get hyperlink text source(s) from text
If the cursor happens to be located inside a hyperlink text source, the hyperlinks panel reveals which hyperlink is involved. If a run of text is selected, the hyperlinks panel reveals which hyperlink text sources the selected text overlaps (none, one, or many).
I can't figure out how to do this with JavaScript. Any suggestions?
Thanks in advance!