Hello, I am new to Word JavaScript API and trying to compare paragraphs before and after cursor changes.
I've tried getSelectedDataAsync, but it can only provide the selected text. I also tried addHandlerAsync to get EventArgs to see whether it contain index of the paragraph but failed.
How can I get the index of the paragraph where the cursor is located? Thanks!