     $thisTextarea.val(latestUndo.newVal)
 
   gl.text.addListeners = () ->
-    console.log('addListeners')
     self = @
     $('.js-md').on 'click', ->
       $this = $(@)

    selObj = window.getSelection()
    selRange = selObj.getRangeAt(0)
    text = $textArea.val()
    lineBreak = '\n' if textArea.selectionStart > 0
    console.log(textArea.selectionStart,lineBreak)
    replaceWith = @replaceRange(
      text,
      textArea.selectionStart,

            gl.text._previousState,
            $thisTextarea.val()
          )
      gl.text._previousState = $thisTextarea.val()

  gl.text.removeListeners = () ->
