             event.preventDefault()
           if /\d/.test(text[start + 1])
             lineText = text.substring(start, end)
-            console.debug(lineText)
             if /(\d+)\./.test(lineText)
-              console.debug(2)
               number = parseInt(RegExp.$1)
               selection.replace("\n#{number += 1}. ", false, true)
               event.preventDefault()

    @element.hide()
    @resize()


  focus: ->
    @textarea.focus()


  bindEvents: ->

        @focus()
        Mercury.uploader(event.originalEvent.dataTransfer.files[0])

    @element.focus =>
      return if @previewing
      Mercury.region = @
      Mercury.trigger('region:focused', {region: @})

    @element.keydown (event) =>
      return if @previewing
      Mercury.changes = true
      @resize()
