Published in Martin Paul Eve

Continuing my post from yesterday, one of the interface components that we want to work is that, when a user clicks a paragraph, the first sentence is selected so that they can immediately begin translating, seamlessly hitting enter to move to the next sentence etc. I’ve been working on this while my colleague has been creating the sidebar interface. It turns out, though, that selecting a specified sentence of text in javascript is not easy.