         else
           $("#formatting-container .#{key}").val(value).change()
     )
-  )
-  $(".formatting-container .link").click( ->
-    selection = editor.getSelection()
-    link = if $(this).parent().hasClass('active') then false else selection.getText()
-    editor.selection.format('link', link)
-    selection = editor.getSelection()
-    boundries = [selection.start.leafNode, selection.end.leafNode]
-    _.each(boundries, (node, index) ->
-      while node.parentNode?.childNodes.length == 1
-        boundries[index] = node.parentNode
-        node = node.parentNode
-    )
-    unless _.any(boundries, (node) ->
-      if node.tagName == 'A'
-        showLinkEditor(editor, node)
-        return true
-      return false
-    )
-      $link = $('a', boundries[0]).first() or $('a', boundries[0]).first()
-      showLinkEditor(editor, $link.get(0)) if $link
   )
 
 

  toolbar.on(Scribe.Toolbar.events.FORMAT, (format, value) ->
    if _.indexOf(dropkickFormats, format) > -1
      $("#formatting-container .#{format}").dropkick('set', ' ')
  )
  editor.on(Scribe.Editor.events.SELECTION_CHANGE, (selection) ->
    formats = selection.getFormats()

curLink = linkTooltip = null

showLinkEditor = (editor, link) ->
  curLink = link
  url = $(link).attr('href')
  $('.url', linkTooltip).text(url).attr('href', url)
