javascript - Using the mouse to highlight -


I want to take the selected text on the screen (text is highlighted with the mouse) and when the button is wrapped I would like to use jquery in a tag, but if it can be done in another framework, then it will also be fine.

I am not able to understand how to do this so far, so any thoughts are appreciated. Apart from this, I know that you can participate in issues if the text goes into many elements, so assume the highlighting of the case only highlight the

tag contains all.

Thank you!

Highlighting the selected text is not necessary that you wrap it. In fact, it is hard to try to wrap if there are many tags in the selection range (i.e. not surrounded properly closed tags).

Here is an answer that was put on the current selection without wrapping. / P>

She uses execCommand to highlight the current document selection for you. Is very lovely.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -