Disable document editing using Office JavaScript API #5074
Labels
Area: Excel
Issue related to Excel add-ins
Area: PowerPoint
Issue related to PowerPoint add-ins
Area: Word
Issue related to Word add-ins
Type: product feature request
Office JS ideas that should be posted to aka.ms/m365dev-suggestions (formerly User Voice.)
Hello,
We are developing an Office Add-In (Taskpane) using the Angular framework and are looking for a way to set the document to read-only or disable editing using the Office JavaScript API. Our Add-In performs logic that may take a significant amount of time, and we are seeking a method to lock the document during this process.
We couldn't find any equivalent methods in the available APIs. Is there any way to achieve this?
Thank you in advance for your help!
Expected Behavior
We would like to disable editing of the document temporarily using the Office JavaScript API and enable editing again once the process is complete.
Current Behavior
There doesn't seem to be a method available in the API to disable editing of the document.
Context
We need to perform long-running logic in the add-in, and during this time, we need to disable editing of the document.
Your Environment
The text was updated successfully, but these errors were encountered: