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

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


        @setStyle selection, delta.attributes

      selectionList = @getSelections()
      for sel in selectionList
        sel.merge selection

