Getting link from current cursor position

  •  10-18-2007, 6:10 AM

    Getting link from current cursor position

    Hi Adam,
     
    I'm attempting to implement a custom link dialog.  I'd like to replicate the behaviour of the built in one, whereby if my cursor is positioned within an existing link (even if there isn't any text selected), I can access the anchor element's attributes i.e. edit the existing link.
     
    I can grab the currently selected text (you've already helped me out on this in the past), but I can't work out how I can access the current node in the DOM.
     
    Any help much appreciated.
     
    Richard.
View Complete Thread