                 sel.addRange(range);
 
         removeAllSelections: () ->
-            if ( $.browser.msie )
+            if ( jQuery.browser.msie )
                 range.empty()
             else
                 window.getSelection().removeAllRanges()

                #widget.toolbar.show()

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

        _deactivated: (event) ->


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