'Getting text from the pointer till the end of the document in JS Word api
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.
Solution 1:[1]
Found a solution:
const doc = context.document;
const originalRange = doc.getSelection();
originalRange.load("text");
await context.sync();
var txt = originalRange.text;
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | polter soln |