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


This is what I’m trying to do.


First I just have a plain text

Then i select a portune of the txst and press the "Add class" button.

And this adds a class with yeallow background to the selected text.