I have the following text inside a text field (multiline):
Code: Select all
This is first line
and this is the second line
instead, this is the third line!
Well, I need to know that number "20" when the user select a word in a line.
For example, if the user select/highlight (with the mouse for example) the word "second" (in the second row), I need to get the char position of the first char in the row (in this case I need to get the position of char "a" inside the word "and").
Thank you for your help!