I read JavaScript API for Office and I couldn't find a handler to notify when user select a text in the word document.
I am aware that we can copy the selected/highlighted text from document as follow:
Word.run(function(context) {
let body = context.document.body;
// ask for the user selected text
let range = context.document.getSelection();
});
This approach is not a registered callback or an event. With this approach I have to request update or to check if user selected anything.
Is there an existing function that I can register for getting notified for user interaction with document?
Thanks in-advance for your help