Scroll to comment OnlyOffice API

Hello everyone,

I’m currently working on a project that involves integrating the OnlyOffice Document Viewer into our web application. We have a requirement to programmatically scroll to a specific comment or text within a document using the OnlyOffice API.

I’ve gone through the OnlyOffice API documentation but couldn’t find a clear way to achieve this. Here are the details of what I’m trying to do:

  • Document Type: DOCX
  • Viewer: OnlyOffice Document Viewer
  • Requirement: Scroll to a specific comment based on its ID or some unique identifier.

Has anyone managed to implement this functionality or have any pointers on how to achieve it? Any code snippets, API references, or general guidance would be greatly appreciated.

Thank you!

@Alexandre

Hello @Vik

Please see this plugin method:

To get all comments and decide to which one you’d like to move cursor to you can use this method:

I hope these methods would help achieving your goal.