Add method to follow hyperlinks

Hello there!

I am in the process of migrating all my workflows from MSOffice to OnlyOffice and I recorded a Macro to figure out how hyperlinks are being followed and I noticed that the current Api does not have anything to follow hyperlink.

As you would expect, I tried vanilla js window.open method and it did not register at all.

My use cases are these:

  1. I have a custom button that creates a local csv file, copies that into an import facility in some other website which is opened in a new tab in my browser. The entire thing is being handles by a single button click.

  2. I have a workflow that creates whatsapp protocol whatsapp://send? on the fly to generate a dynamic message.

Suggestion

Implement some method which passes the hyperlink event to the OS to handle.

I’m not suggesting adding a follow method to ApiHyperlink since that would require the object to be already in the file. I’m suggesting something equivalent to window.open where the user can pass any value.

Hi @Mudeer,

Thanks for the detailed suggestion — we’re looking into it. We’ll update the thread once we have something to share.

Update from the team: window.open was intentionally removed from macros due to XSS security concerns, so a macro-side method isn’t planned. The sanctioned path for your use case is a plugin — plugins can call window.open directly.

Quick start: Quick start | ONLYOFFICE