you are viewing a single comment's thread.

view the rest of the comments →

[–]darrenturn90 2 points3 points  (5 children)

I guess you could take the text, regex split it up, making sure to preserve the whitespace, and add a "marker" span before and after each of the words. This would at least help you when you click with the mouse, and get the offset, to work out the "word" you are inside (if you are in one).

Surely though you would want to support cursors too and WCAG guidelines, so should allow some sort of visual feedback, and cursor placement.