I'm trying to wrap up a really simple RTE for private purposes. I'd like to toggle the bold/italic/underline buttons when a user clicks in the text. I've been reading several posts but they all include a selection either selected by mouse or double click. Also jQuery's select
works on a selection, and not a point where was clicked. I understand there's not really any css for a cursor location, so I would like to select the word where the user clicked.
How can I get the css properties of word from the index clicked? I'm using a div that's editable.
Some of the posts I've been reading: