Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the text to the cursor position #529

Closed
PhantomLord72 opened this issue May 28, 2023 · 2 comments
Closed

Getting the text to the cursor position #529

PhantomLord72 opened this issue May 28, 2023 · 2 comments

Comments

@PhantomLord72
Copy link

Note: This repo is only for questions related to its samples. If you have questions about how to use office.js or the Office developer platform, please post your question on https://stackoverflow.com. Tag your question with office-js or outlook-web-addins

Question

In Word, if I have a lot of paragraphs made up of sentences, if I put the cursor in the middle ofa the text, without selecting any word, just putting the cursor caret on a word, how can I get the text of the current sentence up to the cursor position?
I was able only to get the current sentence with the sample in the documentation, but not up-to-the-cursor.

@michelleranmsft
Copy link
Member

Hi, thanks for your question! We use Github issues to report bugs with our product or documentation, so for general programming questions, we suggest you go to Stack Overflow and see if your question has already been asked or ask a new question.

Thanks,
Microsoft 365 Developer Platform team

@PhantomLord72
Copy link
Author

On stackoverflow I have checked yet, thank you for your effort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants