Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
23
rated 0 times [  25] [ 2]  / answers: 1 / hits: 92739  / 15 Years ago, sat, april 4, 2009, 12:00:00

I'm trying to make my own WYSIWYG editor. Is there a way to get the text which has the user selected in a textarea?


For example, if the user selects some word and then clicks button, how do I find out which text was selected?


I'm using jQuery.


More From » jquery

 Answers
5

Try the jquery-fieldselection plugin.



You can download it from here. There is an example too.


[#99745] Tuesday, March 31, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leslijessalyng

Total Points: 650
Total Questions: 85
Total Answers: 109

Location: Croatia
Member since Mon, Sep 6, 2021
3 Years ago
leslijessalyng questions
Fri, Feb 21, 20, 00:00, 4 Years ago
Tue, Jul 30, 19, 00:00, 5 Years ago
Fri, Jul 5, 19, 00:00, 5 Years ago
Wed, Mar 13, 19, 00:00, 5 Years ago
;