 
   setDomContent = (content) ->
     if 'innerText' of $editorCode[0]
-      $editorCode[0].innerText = content
+      contentSrc = $editorCode[0].innerText = content
     else
       content = content.replace
-      $editorCode[0].innerHTML = he.encode content
+      contentSrc = $editorCode[0].innerHTML = he.encode content
 
   wantsToEdit = (evt) ->
     metaKey = evt.ctrlKey

      method = 'POST'
      url = 'tastes/'

    currentContent = getDomContent().trim().replace(/\s+\n/g, '\n')
    currentContent += '\n'  if currentContent.length
    setDomContent currentContent  if currentContent isnt getDomContent()
    return true  unless currentContent.length

    always = () ->
      edit()


  cleanupPaste = () ->
    # erase any styling
    setContent getDomContent()

  scheduleCleanupPaste = (evt) ->
    setTimeout cleanupPaste, 100
