                 #widget.toolbar.show()
 
             # add 'inEditMode' class onto the activated element
-            $(@).addClass('inEditMode')
-            widget.toolbar.css "width", $(@).width()+26
+            jQuery(@).addClass 'inEditMode'
+            widget.toolbar.css "width", jQuery(@).width()+26
             widget._trigger "activated", event
 
         _deactivated: (event) ->

                sel.addRange(range);

        removeAllSelections: () ->
            if ( $.browser.msie )
                range.empty()
            else
                window.getSelection().removeAllRanges()


        # Only supports one range for now (i.e. no multiselection)
        getSelection: ->
            if ( jQuery.browser.msie )
                range = document.selection.createRange()
            else
                if ( window.getSelection )
