Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Detect selected text Re: Detect selected text

#78351
asp
Participant

Nice just what I was looking for =D

I noticed that it adds a lot of spans at the start of the <p id="highlight"> tag when you just click the button without any text selected. Is there a way to stop that? And is there a possibility to remove the highlighting if you want that?

I know it’s a lot to ask but I’m not capable to do it myself. :?