Sneaky Abstractions

Subscribe to my Feed, follow me on , recommend me on Working With Rails or see my code on GitHub

Comment

You're viewing a comment to the page Sanskrit

By Tore Darell at

Steven: If I’m not misunderstanding you, I think it already does what you want. There’s a problem with how it works, however, because when you double click a word, the selection includes the surrounding tags which are used to determine if it’s currently “inside” a particular style type (i.e. em or b). If you manually mark the word by dragging over it or position the cursor inside the word boundaries, it will add the “active” class to the link.

The link thing kind of has the same problem, because you’re supposed to edit the link text inside the window, but again if you double click it will replace the entire tag, so you have to manually select the word in order to be inside the a tag..

This kind of sucks, but I haven’t had the time to look into it yet..

The ole shit liner is coming to port, and I'll be there to tie her up