 		$('body').delegate '#tooltip', 'mouseleave', (e)->
 			self.hideTooltip()
 
-		# $('body').delegate '#editor', 'click', (e)->
-		# 	$('#editor').focus()
-
 		# toolpad
 		$('body').delegate '#editor', 'mouseup', (e)=>
 			sel = @selection()

					@saveSelection 'm'
					@showToolpadOverSelection 'm'
					@restoreSelection 'm'

	update: ->
		self = @

		top = Math.min startEl.offset().top, endEl.offset().top
		left = ( startEl.offset().left + endEl.offset().left ) / 2
		$('#toolpad').css 'top', top - 35
		$('#toolpad').css 'left', left - 90
	hideToolpad: ->
		$('#toolpad').addClass 'hidden'
		
