 @Editor = class Editor
-	promptMessage: 'Type your article here'
+	promptMessage: '<span class="prompt">Type your article here</span>'
 	status:
 		cmd: false
 		ctrl: false

		shift: false
		empty: false
	displayPrompt: ->
		$('#editor').html "<span class=\"prompt\">#{@promptMessage}</p>"
	hidePrompt: ->
		$('#editor').html '<p><br></p><p></p>'
	selection: ->
		window.getSelection() if window.getSelection

		$('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'
