Hi James,

You could use the javascript method window.getSelection to tell when a user has 
selected some text, grab the location of the mouse onMouseup and drop open a 
menu.  The getSelection function will return an object that you can use to get 
the text selected.
I haven't used anything like this, but i'd imagine there would be a jQuery or 
Prototype plugin out there which might help you out.  Or you could write it 
yourself.

Cheers,
Nathan





On 15/08/2010, at 8:32 AM, jamesl wrote:

> Hi All,
> 
> Im looking for a Rails plug-in or an example somewhere that allows me
> to mark a section of
> text on my web page and then pop-up a menu to action that text, like
> 'highlight' or 'reverse' etc.
> 
> Any suggestions?
> 
> Rgs, James.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to