   # Append new words at the end of the word list
   # @param [String] content the string to append
   push: (content) ->
+    console.log '"' + content + '"'
     preSpaces = content.match PreSpacesRegExp
     if preSpaces isnt null
       @_rte.words.push(new Word (preSpaces[0]))
     words = content.match WordRegExp
+    console.log '"' + preSpaces + '"'
+    console.log words
     if _.isArray(words)
       for w in words
         @_rte.words.push (new Word w)

    # TODO


  # @overload deleteWords (start, end)
  # Delete all the words between start and end
  #
  # @param [Integer] start position of first word to delete
  # @param [Integer] end position of last word to delete
  #
  # @overload deleteWords (position)
  # Delete the word at position
  #
  # @param [Integer] position position the word to delete
  deleteWords: (start, end) ->
    if _.isUndefined(end)
      end = start+1

    if start <= end
      @_rte.words.splice(start, end-start)

  # Merge two words at position
  #

  merge: (n) ->
    if 0 <= n < @_rte.words.length
      w = @getWord(n).trimRight()
      @deleteWords(n)
      @insert({startPos: {word: n, pos:0}}, w)
    else
      throw new Error "Impossible to merge"

