   #
   # @return [Integer] the index of the word
   index: ->
-    index = @richText._richText.words.indexOf @
+    index = @richText.getWords(0).indexOf @
     if index == -1
       9e99
     else


  return ret

# a basic class with generic getter / setter funciton
class BaseClass
  constructor: ->


      delete @right
      delete @richText

    @_model.observe = @observer
    return @_model

  _setModel: (model) ->
