     selectedRange = @getSelectedRange()
     @element.innerHTML = ""
     @element.appendChild(container) for container in @createContainersForText()
-    @recordNodePositions()
-    @appendBRelement()
     @setSelectedRange(selectedRange)
 
   createContainersForText: ->

      return true if element is ancestor
      element = element.parentNode
    false

      container.childNodes[offset]?.trixPosition ? offset

  findContainerAndOffsetForPosition: (position) ->
    return [@element, 0] if position < 1

    walker = createTreeWalker(@element)
    node = walker.currentNode

    while walker.nextNode()
      break if walker.currentNode.trixPosition > position
      node = walker.currentNode

    if node.nodeType is Node.TEXT_NODE
      [node, position - node.trixPosition]
    else
      offset = [node.parentNode.childNodes...].indexOf(node)
      [node.parentNode, offset]

  createContainer = (string, attributes, position, tagName = "span") ->
    element = document.createElement(tagName)
