Reputation: 61
Is it possible to use the preview API in a offline environment? I means, something like to reference locally the library.
Thank you for your time.
Best regards
Upvotes: 2
Views: 1115
Reputation: 49397
Yes, it is possible if you download the latest office.js version locally. To use preview APIs:
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 with npm install --save-dev @types/office-js-preview
.Read more about that in that in the Word JavaScript preview APIs article.
Upvotes: 2