Word JavaScript preview API
Yes, it is possible if you download the latest office.js version locally. To use preview APIs:
- You must reference the beta library on the CDN (
https://appsforoffice.microsoft.com/lib/beta/hosted/office.js
). The type definition file for TypeScript compilation and IntelliSense is found at the CDN and DefinitelyTyped. You can install these types withnpm install --save-dev @types/office-js-preview
. - You may need to join the Office Insider program for access to more recent Office builds.
Read more about that in that in the Word JavaScript preview APIs article.