           @editor.setContents delta
 
         when "selections"
-          selectionStart = @characters.indexOf (event.object.left or event.oldValue.left)
-          selectionEnd = @characters.indexOf (event.object.right or event.oldValue.right)
+          selectionStart = (@get "characters").indexOf (event.object.left or event.oldValue.left)
+          selectionEnd = (@get "characters").indexOf (event.object.right or event.oldValue.right)
           attributes = event.object.attributes
           if event.type == "update" or event.type == "insert"
             delta = {ops: [{retain: selectionStart},

            ]}
            @editor.setContents delta
          else if event.type == "delete"
            #FIXME
            console.log "Ohow… what am I supposed to do there?"

      switch event.name
        when "cursors"
          id = event.object.author
          index = (@get "characters").indexOf event.object.char
          text = event.object.author
          color = "grey" # FIXME

          if event.type == "update" or event.type == "add"
            @editor.cursors.setCursor id, index, text, color

        when "characters"
          charPos = (@get "characters").indexOf event.object
          delta = {ops: [{retain: charPos}]}
          del = {delete: 1}
          ins = {insert: event.object.char, attributes: event.object.attributes}
