   # Input responder
 
   insertString: (string) ->
-    text = new Trix.Text(string)
+    text = new Trix.Text(string, @currentAttributes)
 
     if selectedRange = @getSelectedRange()
       position = selectedRange[0]

  # Selection observer delegate

  selectionDidChange: ->
    console.log "selection changed: position =", @getPosition(), "selected range =", @getSelectedRange()

  # Selection


    @dom = new Trix.DOM @element
    @selectionObserver = new Trix.SelectionObserver
    @selectionObserver.delegate = this
    @currentAttributes = {}

  # Text delegate

