Skip to content

Instantly share code, notes, and snippets.

@Soontao
Created September 9, 2019 08:24
Show Gist options
  • Save Soontao/716dd9ec1baab81278d5a59af22b2f1d to your computer and use it in GitHub Desktop.
Save Soontao/716dd9ec1baab81278d5a59af22b2f1d to your computer and use it in GitHub Desktop.
Word.run((ctx) => {
Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged, (e) => {
console.log(e)
})
return ctx.sync()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment