 				.replace( new RegExp('h[3-9]', 'ig'), 'h2' )
 				.removeTagsExcept(['p', 'h1', 'h2', 'a', 'br', 'pre', 'code'])
 			document.execCommand 'insertHtml', false, result
-		.on 'askid', =>
+		.delegate 'askid', =>
 			if @askid
 				@askid( @ ) unless @status.connecting
 			else

			@updateTitlePrompt(true)

	bindEditorEvents: ->
		$('#editor').on 'keydown', (e)=>
			@hideInsertion()
			@checkNew() if @status.new
			@handleKeyDown(e)
			@update()
		.on 'keyup', (e)=>
			@handleKeyUp(e)
			@update()
			@selection()
		.on 'click', (e)->
			$(@).focus()
		.on 'paste', (e)=>
			e.preventDefault()
			raw = e.clipboardData.getData('text/html') || e.clipboardData.getData('text')
			pasteElement = document.createElement 'p'

		@delegateEvents()

	bindEditorTitleEvents:->
		$('#editor-title').delegate 'keydown', (e)=>
			@handleTitleKeyDown(e)
		.delegate 'keyup', (e)=>
			@handleTitleKeyUp(e)
		.delegate 'paste', (e)=>
			e.preventDefault()
			raw = e.clipboardData.getData('text/html') || e.clipboardData.getData('text')
			pasteElement = document.createElement 'p'
