Closed Raffinate closed 3 years ago
If text in the line has multiple fonts or various formatting, the line is split in multiple word elements.
In that case GoogleDocsUtils.getWordElements() will find only first word node in the line and other word nodes won't be found.
This breaks all functions that are related to word nodes, such as getCaret() e.t.c.
Steps to reproduce:
Expected properly initialized caret, but instead we have all fields as null
Created pull request with fix
Solved in 2.2.0 version.
If text in the line has multiple fonts or various formatting, the line is split in multiple word elements.
In that case GoogleDocsUtils.getWordElements() will find only first word node in the line and other word nodes won't be found.
This breaks all functions that are related to word nodes, such as getCaret() e.t.c.
Steps to reproduce:
Expected properly initialized caret, but instead we have all fields as null