       @selfCursor = @_model.getContent("characters").ref(obj)
     else
       @selfCursor = obj
+
     @_model.getContent("cursors").val(@_model.HB.getUserId(), @selfCursor)
+
 
   # describe how to propagate yjs events to the editor
   # TODO: should be private!

      if event.action is "userLeft"
        @_model.getContent("cursors").delete(event.user)

  # Apply a delta and return the new position
  # @param delta [Object] a *single* delta (see ot-types for more info)
  # @param position [Integer] start position for the delta, default: 0

  # @param position [Integer] the position where to insert it
  setCursor : (position) ->
    @selfCursor = @_model.getContent("characters").ref(position)

    @_model.getContent("cursors").val(@_model.HB.getUserId(), @selfCursor)

  setAuthor : (@author) ->
    @_model.getContent('authors').val(@_model.HB.getUserId(), @author)

  # pass deltas to the character instance
  # @param deltas [Array<Object>] an array of deltas
