DigitalWarfare-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jul-31 16:42 UTC
Getting highlighted text
Is there a way utilizing prototype or any generic javascript to get the highlighted text a user select with their cursor, no matter where they are on that page? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
TinyMCE has a nice function that does this: getSelectedHTML() Try looking here: http://www.google.ca/codesearch?q=getSelectedHTML On Jul 31, 12:42 pm, "DigitalWarf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <DigitalWarf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there a way utilizing prototype or any generic javascript to get > the highlighted text a user select with their cursor, no matter where > they are on that page?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---