   #
   deleteSel: (selection) ->
     if not selection.isValid()
-      console.log selection
       throw new Error "Invalid selection, got", selection
 
     left = selection.left


    # if they have two styles that differ
    for key, val of @style
      if selection.style[key] != val
        return
    for key, val of selection.style
      if val != @style[key]
        return

    if @atLeftOf selection # remove @

    index = 0
    array = @_rte.selections
    for index in [0..array.length-1]
      if (array[index] == selection)
        array.splice index, 1
        break

