 		$('#toolpad').css 'left', left - 90
 		el = @getSelectedElement()
 		if el.is 'a'
-			$('#toolpad input').attr 'href', el.val()
+			$('#toolpad input').val el.attr('href')
 			@openLinkInput()
 
 		@hideTooltip()

		$('#toolpad li:first-child').removeClass 'toggled'
		@lastLinkElement = null
		@linkRange = null
		@status.showToolpad = false
	openLinkInput: ->
		$('#toolpad li:first-child').addClass 'toggled'

					@saveSelection 'toolpad'
					@showToolpadOverSelection 'toolpad'
					@restoreSelection 'toolpad'
					self.linkRange = self.selection().getRangeAt 0
		# apply link URL
		$('#toolpad').delegate 'li:first-child', 'click', (e)->
			self.openLinkInput()
		# .delegate 'li:first-child', 'mouseenter', (e)->
		# 	self.linkRange = self.selection().getRangeAt 0
		.delegate 'input', 'keydown', (e)->
				# self.lastLinkElement.setAttribute 'href', $(@).val()
			if e.keyCode == 13
