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

#78316
asp
Participant

This is what I’m trying to do.

[img]http://mathiasb.no/stuff/note/show.png[/img]

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.