OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
659 stars 94 forks source link

How to dynamically switch between read-only and editing modes of documents through the Word JavaScript API #4605

Open anybody-1 opened 2 weeks ago

anybody-1 commented 2 weeks ago

I have a requirement now that during interface requests, users cannot edit documents and can only preview them. Editing can only be done after the interface request is completed so, i want to know how todo by word js api

isabela-dominguez commented 2 weeks ago

Thank you for sharing this issue @anybody-1. Connecting you with @wangyun-microsoft who may be able to help.

anybody-1 commented 1 week ago

image Or please tell me how to dynamically switch modes in the graph using the Word JavaScript API