   @tooltipInput.value = url
 
 exitEditMode = ->
-  if @tooltipLink.innerText != @tooltipInput.value
+  if ScribeDom.getText(@tooltipLink) != @tooltipInput.value
     @tooltipLink.href = @tooltipInput.value
     ScribeDOM.setText(@tooltipLink, @tooltipInput.value)
     formatLink.call(this, @tooltipInput.value)

        enterEditMode.call(this, url)
  )
  ScribeDOM.addEventListener(@tooltipChange, 'click', =>
    enterEditMode.call(this, @tooltipLink.innerText)
  )
  ScribeDOM.addEventListener(@tooltipDone, 'click', =>
    exitEditMode.call(this)

    link = event.target
    while link? and link.tagName != 'DIV' and link.tagName != 'BODY'
      if link.tagName == 'A'
        ScribeDOM.setText(@tooltipLink, link.href)
        @tooltipLink.href = link.href
        ScribeDOM.removeClass(@tooltip, 'editing')
        showTooptip.call(this, link.getBoundingClientRect())
        return
