I have some text in text area or editor. When i select some of the code and then i click on add link i need to convert the selected text to link. How can i do that using jquery.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In association with the Rangyinputs jQuery plugin, you could use the following code
Alternatively, for a rich text editor you can check this simple, lightweight rich text editor
For a simple demonstration of the Rangyinputs plugin function, see this fiddle