                 if @options.floating
                     return [event.pageX, event.pageY]
                 else
-                    if $(event.target).attr('contenteditable') == "true"
-                        containerElement = $(event.target)
+                    if jQuery(event.target).attr('contenteditable') == "true"
+                        containerElement = jQuery(event.target)
                     else
-                        containerElement = $(event.target).parents('[contenteditable]').first()
+                        containerElement = jQuery(event.target).parents('[contenteditable]').first()
 
                     containerPosition = containerElement.position()
                     return [containerPosition.left - @options.offset.x, containerPosition.top - @options.offset.y]


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

                #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) ->
