   # deleteByDrag: (event) ->
 
   deleteCompositionText: (event) ->
-    @composition = ""
+    @responder?.deleteInDirection("backward")
 
   # deleteContent: (event) ->
 
   deleteContentBackward: (event) ->
-    {length} = getTargetText(event)
     @delegate?.inputControllerWillPerformTyping()
-    @responder?.deleteInDirection("backward", {length})
+    @responder?.deleteInDirection("backward")
 
   # deleteContentForward: (event) ->
   #

#= require trix/controllers/abstract_input_controller

{objectsAreEqual, compact, summarizeStringChange} = Trix

class Trix.Level2InputController extends Trix.AbstractInputController
  mutationIsExpected: (mutationSummary) ->

  # historyUndo: (event) ->

  insertCompositionText: (event) ->
    @composing = true
    @delegate?.inputControllerWillPerformTyping()
    @responder?.insertString(event.data)

  insertFromComposition: (event) ->
    @composing = false
    @delegate?.inputControllerWillPerformTyping()
    @responder?.insertString(event.data)

  # insertFromDrop: (event) ->
  #
