       caretOffset = range.startOffset
       textNode    = range.commonAncestorContainer
 
-      handler.apply this, [event, @elem, caretOffset, textNode]
+      handler.apply this, [event, caretOffset, textNode]
 
     # TODO intelligently handle Up Arrow at the beginning of a section
     # TODO intelligently handle Down Arrow at the end of a section


    @replaceWith textNode, caretOffset, caretOffset, char

  applySmartEmDash: (event, elem, caretOffset, textNode) =>
    # The user typed "--", which we will now convert to an em dash.
    if "-" == textNode.textContent[caretOffset - 1]
      event.preventDefault()

        if event.metaKey || event.ctrlKey
          event.preventDefault()

  applySmartQuote: (event, caretOffset, textNode) =>
    event.preventDefault()

    precededByWord = textNode.textContent[caretOffset - 1]?.match /\S/
