Hi Tomas, I have been testing this. it seems there is an issue.
In "word", if you make wo red, and detect the span index range, it will be correct,
"wo" is a range, and "rd" is a range.
but if you apply a color again to "or", so coloring should be like "w" "or" "d", and you click in "or", the span will only detect the O (from previously applied style.
Can you reproduce this?
I am using the richTextArea.getStyleRangeAtPosition(caretpos);
Hi Tomas, I have been testing this. it seems there is an issue.
In "word", if you make wo red, and detect the span index range, it will be correct,
"wo" is a range, and "rd" is a range.
but if you apply a color again to "or", so coloring should be like "w" "or" "d", and you click in "or", the span will only detect the O (from previously applied style.
Can you reproduce this?
I am using the richTextArea.getStyleRangeAtPosition(caretpos);