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
677 stars 95 forks source link

Using this version of office js (https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js or https://appsforoffice.microsoft.com/lib/1/hosted/office.js) causing issue while registering word comment events. Unable to register the comment events for this version of office js. #4916

Open Abhishek-consultlane opened 1 month ago

Abhishek-consultlane commented 1 month ago

I am working on office.js library to use it in addin for registering comment events e.g. onCommentAdded , onCommentChanged , onCommentDeleted , onCommentDeselected and onCommentSelected. When using this version of office.js (https://appsforoffice.microsoft.com/lib/beta/hosted/Office.js), the comment events are getting registered properly. But events are not getting registered for this version of office.js - https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js or https://appsforoffice.microsoft.com/lib/1/hosted/office.js. I have my addin published in marketplace app store. During the process of app verification by microsoft, one of the report issue suggesting me to use these version of office js (https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js or https://appsforoffice.microsoft.com/lib/1/hosted/office.js), which causing registration issue with comment events. The online word build I am working on is 20240919.2

Expected Behavior Word Comment events should get registered successfully when using this version of office js (https://appsforoffice.microsoft.com/lib/beta/hosted/Office.js)

Current Behavior Getting issue or not able to register the comment events for this version of office js (https://appsforoffice.microsoft.com/lib/beta/hosted/Office.js)

wangyun-microsoft commented 2 weeks ago

@Abhishek-consultlane Comment event APIs are just working for Word online as preview APIs. In your user scenario, is the Word online the only platform that you would like to support your add-in?

Abhishek-consultlane commented 2 weeks ago

Hi,

Yes, Word Online is the primary platform where we would like to support our add-in.

Regards, Vivek Singh

On Tue, Oct 8, 2024 at 12:55 PM Wang Yun @.***> wrote:

@Abhishek-consultlane https://github.com/Abhishek-consultlane Comment event APIs are just working for Word online as preview APIs. In your user scenario, is the Word online the only platform that you would like to support your add-in?

— Reply to this email directly, view it on GitHub https://github.com/OfficeDev/office-js/issues/4916#issuecomment-2399053267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4VDI5GEW4Y5I3D57ES6O3Z2OCG5AVCNFSM6AAAAABOV4AJPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJZGA2TGMRWG4 . You are receiving this because you were mentioned.Message ID: @.***>