 			when 91
 				@status.cmd = false
 				$('.cmd').addClass('hidden')
+	constructor: (options={})->
+		@id = options.id
+		@status.new = !@id
+		@articleCreateURL = options.articleCreateURL
+		@articleSaveURL = options.articleSaveURL
+		@articleDeleteURL = options.articleDeleteURL
 
-	init: ->
+	init: ()->
 		@update()
 		@displayPrompt()
 

			$(@).attr 'name', self.rand()
		$('#debug').text $('#editor').html()
	checkNew: ->
		@status.new = false if $('#editor').text().length > 5
	checkEmpty: ->
		@status.empty = $('#editor').text() == '' || $('#editor').html() == @promptMessage
	toggleFormatBlock: (tag)->

@Editor = class Editor
	articleCreateURL: ''
	articleSaveURL: ''
	articleDeleteURL: ''
	id: ''
	promptMessage: '<span class="prompt">Type your article here</span>'
	status:
		cmd: false
