 		result = ''
 		result += Math.random().toString(36).substr(2,1) for i in new Array(len)
 		result.toUpperCase()
+
 	## UI RELATED OPERATIONS ##
+	
 	## RANGE OPERATIONS ##
-	## EVENT BINDINGS ##
-	displayPrompt: ->
-		$('#editor').children().first().html '<span class="prompt">'+@promptMessage+'</span>'
-	displayTitlePrompt: ->
-		$('#editor-title').html '<span class="prompt">'+@titlePromptMessage+'</span>'
-	clear: ->
-		$('#editor').children().first().html('<br>')
-	clearTitle: ->
-		$('#editor-title').html ''
-	clearStatus: ->
-		$('.debug-status').addClass 'hidden'
-		@status.cmd = @status.ctrl = @status.alt = @status.shift = false
-	cleanAttributes: (el)->
-		attributes = $.map el.attributes, (item)->
-			item.name
-		$.each attributes, (i, key)=>
-			$(@).removeAttr(key)
-	divsToPs: ->
-		#transform divs to ps
-		@saveSelection()
-		$('#editor div').not('[name]').each ->
-			el = $('<p>')
-			el.html $(@).html()
-			$(@).after(el)
-			$(@).remove()
-		@restoreSelection()
-	
-	detectChanged: ->
-			title = $('#editor-title').html()
-			content = $('#editor').html()
-			if @lastTitle != title || @lastContent != content
-				@setChanged true
-				@lastTitle = title
-				@lastContent = content
-
 	selection: ->
 		window.getSelection() if window.getSelection
 	saveSelection: (prefix='cursor')->

@Editor = class Editor
	## PROPERTIES ##
	titlePromptMessage: 'New title'
	promptMessage: 'Type your article here'

		changed: false
		showToolpad: false
		showTooltip: false

	## INITIALIZERS AND ACCESSORS ##
	constructor: (options={})->
		@id = options.id
