Reputation: 185
I'm creating a word add-in using react js.
Currently, I'm using the browser local storage to store the values. Due to using local storage, the Word add-in is working as expected with Word Online but not with Word 2016.
Upvotes: 1
Views: 222
Reputation: 13480
Using the Office.js API, you can use the Settings object (Office.context.document.settings
) to store data (as name/value pairs) in the host document. For details about how this works, see the documentation here:
As the documentation indicates, the settings that you create/save using the Settings object are saved per add-in and per document.
Upvotes: 1