     types["Files"] or types["application/x-trix-document"] or types["text/html"] or types["text/plain"]
 
   getPastedHTMLUsingHiddenElement: (callback) ->
-    selectedRange = @responder?.getSelectedRange()
+    selectedRange = @getSelectedRange()
 
     style =
       position: "absolute"

    # by the extra <br> rendered to represent them.
    if textDeleted is "\n" and unhandledDeletion
      if textAdded and not unhandledAddition
        if range = @responder?.getSelectedRange()
          if @responder?.positionIsBlockBreak(range[1] + textAdded.length)
            unhandledDeletion = false


    requestAnimationFrame =>
      html = element.innerHTML
      document.body.removeChild(element)
      @setSelectedRange(selectedRange)
      callback(html)

  @proxyMethod "responder?.getSelectedRange"
  @proxyMethod "responder?.setSelectedRange"
  @proxyMethod "responder?.expandSelectionInDirection"
  @proxyMethod "responder?.selectionIsInCursorTarget"
  @proxyMethod "responder?.selectionIsExpanded"
