     else
       div.css("display", "inline-block")
     div.html(dataTextToFormattedText(div.data("content")))
+    restoreCursorLocation(div)
+    return
+
   div.on "send-content", ->
     # Fix big cursor issue
     if div.text().length == 0

  formattedText = formattedText.replace(/&nbsp;/g, ' ')           # &nbsp; -> ' '
  return formattedText

saveCursorLocation = () ->

restoreCursorLocation = () ->

$.fn.colorfy = (plainTextProcessor) ->


    area.val(div.data("content"))

  div.on "keyup paste", ->
    saveCursorLocation(div)
    div.data("content", formattedTextToDataText(div.html())).trigger("send-content").trigger("receive-content")


