question

cs1137195420-7868 avatar image
0 Votes"
cs1137195420-7868 asked CeasarChenMSFT-3458 commented

How to get the index of the paragraph where the cursor is located?

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!

office-addins-devoffice-word-itprooffice-js-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @cs1137195420-7868
Your question is related to Office development. I am in charge of Office general. It is recommended that you go to Office developer community


0 Votes 0 ·

0 Answers