I was unable to create a snippet that would work in the playground. htmlarea doesn't seem to agree with it.
What I need to be able to do is show rich html content (text) to the user and the user should be able to click any word of the text that he doesn't know and my app should be able to determine which word the user clicked and present him with a translation of that word and do other things with the word such as add it to a special list of unknown words for later study.
I thought I'd be able to use htmlarea for displaying html text to the user and tracking the words that the user clicks. I need it to be non-editable. The user should see the text but not be able to change it.
I've tried calling setEditable(false) on my htmlarea but the text remains editable. Is it a bug or am I doing it wrong?
Maybe I can use a different widget instead of htmlarea for my purposes? What are your suggestions?