On Fri, Nov 13, 2009 at 04:25, ahmedre <
ahm...@gmail.com> wrote:
>
> so that having been said, i was wondering:
> 1. how do you add a context menu *only* if some text is selected. i
> know how to do this if an image or a link is selected (using .on()),
> or regardless of whether or not something is selected (just using
> add), but how can i say "if any text is selected, add a menu" (like
> search google or the ubiquity search option)? - the examples for the
> menu documentation show a use of jetpack.menu.context.page.replace to
> accomplish this by replacing the search menu (which doesn't work for
> me btw on firefox 3.5.5 on mac while using jetpack 0.6.1 - no errors
> or anything in the console, just the menu is never replaced)...
>