     else throw new Error "Wrong set of parameters
       #{start}, #{end}, #{rte}, #{style}"
 
-  # Print a string reprensetation of string
+  # Print a string representation of string
   print: () ->
     r = @.right or {word: 'rightmost'};
     l = @.left or {word: 'leftmost'};

  #
  # @param [Selection] selection the selection to split
  split: (selection) ->
    if !selection
      return
    if selection == @
      return

    # Check that they have all keys in common (but not necessarily same value!)

  #   Return all the selections and filter using fun
  #   @param [Function] fun the function to use for filtering
  #   @return [Array<Selection>] an array of selection
  getSelections: (filter = null)->
    if _.isFunction(filter)
      @_rte.selections.filter(filter) or []
    else
      @_rte.selections or []

