 			height = $(@).outerHeight()
 			self.showTooltip()
 			self.setTooltipTop thisOffset.top - parentOffset.top
+		$('#tooltip').delegate '.left-panel li:nth-child(2)', 'click', (e)->
+			self.toggleFormatBlock $('.hovered').first(), 'h1'
 		$('body').delegate '#tooltip', 'mouseleave', (e)->
 			self.hideTooltip()
 

		switch e.keyCode
			when 49
				if @status.cmd or @status.ctrl
					@toggleFormatBlock 'h1'
					e.preventDefault()
					e.stopPropagation()
			when 50
				if @status.cmd or @status.ctrl
					@toggleFormatBlock 'h2'
					e.preventDefault()
					e.stopPropagation()
			when 51
				if @status.cmd or @status.ctrl
					@toggleFormatBlock 'pre'
					e.preventDefault()
					e.stopPropagation()
			when 16

		@status.titleEmpty = $('#editor-title').text() == '' || $('#editor-title').text() == @titlePromptMessage
	checkEmpty: ->
		@status.empty = $('#editor').text() == '' || $('#editor').text() == @promptMessage
	toggleFormatBlock: (jqel, tag)->
		if jqel.attr 'name'
			@saveSelection()
			if jqel.is tag
				newEl = $('<p>').html jqel.html()
				newEl.attr 'name', jqel.attr 'name'
				jqel.after(newEl)
				jqel.remove()
				@restoreSelection()
			else
				newEl = $("<#{tag}>").html jqel.html()
				newEl.attr 'name', jqel.attr 'name'
				jqel.after(newEl)
				jqel.remove()
				@restoreSelection()
		else
			document.execCommand('formatBlock', false, tag)
