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

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

  # Text delegate


  # Selection observer delegate

  selectionDidChange: ->
    if selectedRange = @dom.getSelectedRange()
      position = selectedRange[0] - 1
      @currentAttributes = @text.getAttributesAtPosition(position)

  # Selection

