JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
883 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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!