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

  # Input responder

  insertString: (string) ->
    text = new Trix.Text(string)

    if selectedRange = @getSelectedRange()
      position = selectedRange[0]

  # Selection observer delegate

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

  # Selection

