I'm using the answer of this question but when you highlight or select a text with different font style, it didn't return a whole text, for example:
Selected Text: Ordering
First Font Style(Arial): Order
Second Font Style(Times New Roman): ing
It will return only the first font style which is Order
Any Suggestions.