     @deleteInDirectionWithGranularity("backward", "word")
 
   moveTextFromLocationRange: (locationRange) ->
-    @delegate?.compositionWillSetLocationRange?()
+    @notifyDelegateOfIntentionToSetLocationRange()
     position = @getPosition()
     @document.moveTextFromLocationRangeToPosition(locationRange, position)
     @setPosition(position)

  preserveSelection: (block) ->
    @selectionDelegate?.preserveSelection?(block) ? block()

  expandSelectionForEditing: ->
    for key, value of Trix.attributes when value.parent
      if @hasCurrentAttribute(key)

      @insertText(text)

  deleteInDirectionWithGranularity: (direction, granularity) ->
    @notifyDelegateOfIntentionToSetLocationRange()
    range = @getLocationRange()

    if range.isCollapsed()
