is there any way to get highlighted or selected text data from a user using php or javascript? I am building a text editor and need to use a callback function to bold/highlight/underline/etc selected text. thanks!
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.
for
<textarea>:for elements like
<div>etc. check this tutorial http://www.webreference.com/js/column12/crossbrowser.htmlyou may like to check this powerful and simple javascript text editor – TinyCME