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

                sel.addRange(range);

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

                #widget.toolbar.show()

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

        _deactivated: (event) ->
