     area.val(div.data("content"))
 
   div.on "keyup paste", ->
-    div.data("content", formattedTextToDataText(div.html())).trigger("send-content")
+    div.data("content", formattedTextToDataText(div.html())).trigger("send-content").trigger("receive-content")
 
 
   # Initialize content

  # inline image
  # reference image



createNode = (content, htmlfier, descriptor, klass) ->
  node = {}
  node.content = content
  node.htmlfier = htmlfier
  node.descriptor = descriptor
  node.klass = klass
  node.subnodes = []
  node.supernode = null # Unused

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

saveCursorLocation = () ->

restoreCursorLocation = () ->

$.fn.colorfy = (plainTextProcessor) ->

