         containerElement = containerElement.parentNode
 
       treeWalker = document.createTreeWalker containerElement,
-                                             NodeFilter.SHOW_ALL,
-                                             (node) ->
-                                               return if rangeIntersectsNode(range, node)
-                                                        NodeFilter.FILTER_ACCEPT
-                                                      else
-                                                        NodeFilter.FILTER_REJECT
-                                             ,
-                                             false
+         NodeFilter.SHOW_ALL,
+         (node) ->
+           return if self.rangeIntersectsNode(range, node)
+                    NodeFilter.FILTER_ACCEPT
+                  else
+                    NodeFilter.FILTER_REJECT
+         ,
+         false
 
       selectedNodes = []
       while (treeWalker.nextNode())

      @toolbar = @editor.prevAll('.editor_toolbar:first')

      $.each cfg.buttons, (i, button) ->
        switch button.toLowerCase()
          when 'bold'
            toolbar.addButton {label : 'Strong', handler: (editor) -> return editor.boldSelection()}
          when 'italic'
            toolbar.addButton {label : 'Italic', handler: (editor) -> return editor.italicSelection()}
          when 'underline'
            toolbar.addButton {label : 'Underline', handler: (editor) -> return editor.underlineSelection()}
          when 'image'
            toolbar.addButton {label : 'Insert Image', handler: (editor) => return self.insertImageHandler()}
          else
            toolbar.addButton {label : button}

      $.each cfg.dropdowns, (i, dropdown) ->
        toolbar.addDropdown dropdown

                { label: "H1", val: 'H1' },
                { label: 'H2', val: 'H2' },
                { label: 'H3', val: 'H3' }
            ],
            handler: (editor, val) ->
                editor.formatblockSelection(val)
          }
          {
            name: 'blocks',
            label: 'Blocks',
            options: [
                { label: "Blocks", val: '' },
                { label: "Block left", val: 0 }
                { label: "Block center", val: 1 }
                { label: "Block right", val: 2 }
            ]
            handler: (editor, val) ->
              classes = ['pull-left', 'pull-center', 'pull-right']
              if val != ''
                self.toggleClassOnSelection(classes, classes[val])
              else
                self.toggleClassOnSelection(classes, '')
          }
          {
            name: 'inlines',
            label: 'Inlines',
            options: [
                { label: "Inlines", val: '' },
                { label: "Inline left", val: 0 }
                { label: "Inline right", val: 1 }
            ]
            handler: (editor, val) ->
              classes = ['pull-left', 'pull-right']
              if val != ''
                self.toggleClassOnSelection(classes, classes[val])
              else
                self.toggleClassOnSelection(classes, '')
          }
        ]

