I am trying to add an attribute when using a wysiwyg editor that uses \"createLink\" command. I thought it would be trivial to get back the node that is created after the browse
It's a hacky workaround, but should work unless somebody makes two identical links.
this.getSelection() seems to get the same in both needed browser, so:
this.getSelection()
var link=prompt('gimme link'); //add the thing var text=this.getSelection(); var whatYouNeed=$('a:contains("'+text+'")[href="'+link+'"');