 		return if el[0].nodeType == 3 then el.parent() else el
 	clearStatus: ->
 		$('.debug-status').addClass 'hidden'
-		@status.cmd = @status.ctrl = @status.alt = @status.shift = @status.empty = false
+		@status.cmd = @status.ctrl = @status.alt = @status.shift = false
 	rand: (len=4)->
 		result = ''
 		result += Math.random().toString(36).substr(2,1) for i in new Array(len)

@Editor = class Editor
	promptMessage: 'Type your article here'
	status:
		cmd: false
		ctrl: false

		$('p,h1,h2,pre').not('[name]').each ->
			$(@).attr 'name', self.rand()
		$('#debug').text $('#editor').html()
	checkEmpty: ->
		@status.empty = $('#editor').text() == '' || $('#editor').html() == @promptMessage
	toggleFormatBlock: (tag)->
		el = @getSelectedElement()
		if el.attr 'name'
