I am using OfficeJs to create word add-in. In that i want to show modal dialog on click on ribbon button. I have used below API Office.context.ui.displayDialogA
How can i get the text in range from the current location of the cursor till the end of the file? I use JavaScript Word api.