 				btn.addClass 'toggled'
 			else
 				btn.removeClass 'toggled'
+	showToolpadOverSelection: (prefix='m')->
+		startEl = $('#'+prefix+'Start')
+		endEl = $('#'+prefix+'End')
+		
 	delegateEvents: ()->
 		self = @
 		$('#editor').delegate '> h1,h2,p,pre,code,figure', 'mouseenter', (e)->

			self.showTooltip()
			self.setTooltipTop thisOffset.top - parentOffset.top
		.delegate '> h1,h2,p,pre,code,figure', 'mouseleave', (e)->
			self.saveSelection()
			self.update()

		# tooltip functions

				jqel.remove()
				@restoreSelection()
			else
				newEl = $("<#{tag}>").html jqel.html()
				newEl.attr 'name', jqel.attr 'name'
				newEl.attr 'class', jqel.attr 'class'
				jqel.after(newEl)
				jqel.remove()
				@restoreSelection()
