# What are the eventNames in the attachEvent function of the Spreadsheet API

**URL:** https://community.onlyoffice.com/t/what-are-the-eventnames-in-the-attachevent-function-of-the-spreadsheet-api/12492
**Category:** Docs API
**Tags:** how-to-question
**Created:** [16 January 2025 11:25 UTC](https://community.onlyoffice.com/t/what-are-the-eventnames-in-the-attachevent-function-of-the-spreadsheet-api/12492 "2025-01-16T11:25:29Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![xiaoqi](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/x/ee7513/32.png) [@xiaoqi](https://community.onlyoffice.com/u/xiaoqi)
#### Post date: [16 January 2025 11:25 UTC](https://community.onlyoffice.com/t/what-are-the-eventnames-in-the-attachevent-function-of-the-spreadsheet-api/12492/1 "2025-01-16T11:25:29Z")

</div>

Do you want to: Ask a how-to question  
For feature suggestions, describe the result you would like to achieve in detail:  
I want to know what type of eventName the attachEvent function in the only office spreadsheet API is and what events it supports.

For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem:  
Community Server/Control Panel version: 8.2.22  
Type of installation of Workspace (docker, deb/rpm, exe, please point us to the installation guide that you used as well):  
OS: win 10  
Browser version: chrome 131.0.6778.265  
Additional information:  
The type of the current eventName parameter is marked as string in the document.

 ![image](https://forum.onlyoffice.com/uploads/default/original/2X/9/96164be447cd81bb210bd3307263289fb8bb05c5.png)  
please tell the type of “eventName”, very very very thank you.

---

<div class="post-metadata">

### Author: ![Constantine](https://community.onlyoffice.com/user_avatar/community.onlyoffice.com/constantine/32/1469_2.png) [@Constantine](https://community.onlyoffice.com/u/Constantine)
#### Post date: [17 January 2025 10:00 UTC](https://community.onlyoffice.com/t/what-are-the-eventnames-in-the-attachevent-function-of-the-spreadsheet-api/12492/2 "2025-01-17T10:00:35Z")

</div>

Hello @xiaoqi

The description of the [attachEvent](https://api.onlyoffice.com/docs/office-api/usage-api/spreadsheet-api/api/attachevent/) method says:

> Subscribes to the specified event and calls the callback function when the event fires.

This method allows connecting to the any plugin event for the specified editor. Please find the list of events here:

> **[Events
 - ONLYOFFICE Api Documentation](https://legacy-api.onlyoffice.com/plugin/events)**
>
> ONLYOFFICE Developer API

---

<div class="post-metadata">

### Author: ![guochongjin](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@guochongjin](https://community.onlyoffice.com/u/guochongjin)
#### Post date: [2 July 2025 03:20 UTC](https://community.onlyoffice.com/t/what-are-the-eventnames-in-the-attachevent-function-of-the-spreadsheet-api/12492/3 "2025-07-02T03:20:55Z")

</div>

Hello！I have the same question.The link you show is the event of plugin object, not the event of spreadsheetAPI.Whether these two event are the same?

---

<div class="post-metadata">

### Author: ![Constantine](https://community.onlyoffice.com/user_avatar/community.onlyoffice.com/constantine/32/1469_2.png) [@Constantine](https://community.onlyoffice.com/u/Constantine)
#### Post date: [4 July 2025 07:50 UTC](https://community.onlyoffice.com/t/what-are-the-eventnames-in-the-attachevent-function-of-the-spreadsheet-api/12492/4 "2025-07-04T07:50:11Z")

</div>

Hello @guochongjin

Unfortunately, the documentation is being updated, currently there is no list available. Technically, these are indeed plugin events.

---

<div class="post-metadata">

### Author: ![guochongjin](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@guochongjin](https://community.onlyoffice.com/u/guochongjin)
#### Post date: [7 July 2025 02:23 UTC](https://community.onlyoffice.com/t/what-are-the-eventnames-in-the-attachevent-function-of-the-spreadsheet-api/12492/5 "2025-07-07T02:23:22Z")

</div>

Thank you for your response. Do you have an estimated timeline for the update/fix?

---

<div class="post-metadata">

### Author: ![Constantine](https://community.onlyoffice.com/user_avatar/community.onlyoffice.com/constantine/32/1469_2.png) [@Constantine](https://community.onlyoffice.com/u/Constantine)
#### Post date: [7 July 2025 13:50 UTC](https://community.onlyoffice.com/t/what-are-the-eventnames-in-the-attachevent-function-of-the-spreadsheet-api/12492/6 "2025-07-07T13:50:57Z")

</div>

@guochongjin, @xiaoqi

I’d like to bring some clarifications on `attachEvent` method – basically, this method for each editor already demonstrates the event that can be utilized:

- `attachEvent` for text document editor can only use `asc_onHyperlinkClick`:  
[attachEvent | ONLYOFFICE](https://api.onlyoffice.com/docs/office-api/usage-api/text-document-api/Api/Methods/attachEvent/)
- `attachEvent` for spreadsheet editor can only use `onWorksheetChange `:  
[attachEvent | ONLYOFFICE](https://api.onlyoffice.com/docs/office-api/usage-api/spreadsheet-api/Api/Methods/attachEvent/)
- `attachEvent` for presentation editor can only use the same `asc_onHyperlinkClick`:  
[attachEvent | ONLYOFFICE](https://api.onlyoffice.com/docs/office-api/usage-api/presentation-api/Api/Methods/attachEvent/)

Other than that, they cannot utilize any other plugin event. I was incorrect mentioning plugin events here:

> [@Constantine](#):
>
> This method allows connecting to the any plugin event for the specified editor.

* * *

> [@guochongjin](#):
>
> Whether these two event are the same?

Answering this question now – `attachEvent` for Office API (all links to the variants for each editor I’ve mentioned above) cannot work with plugin events, so they are **not the same**.

Please accept my sincere apologies for confusion. We’ll update descriptions of each `attachEvent` method to make it more clearer towards the understanding of their capabilities.

---

<div class="post-metadata">

### Author: ![guochongjin](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/g/9f8e36/32.png) [@guochongjin](https://community.onlyoffice.com/u/guochongjin)
#### Post date: [9 July 2025 05:51 UTC](https://community.onlyoffice.com/t/what-are-the-eventnames-in-the-attachevent-function-of-the-spreadsheet-api/12492/8 "2025-07-09T05:51:06Z")

</div>

Thanks for explaining this. We truly hope your product keeps improving and thriving!

---

<div class="post-metadata">

### Author: ![Alexandre](https://community.onlyoffice.com/user_avatar/community.onlyoffice.com/alexandre/32/285_2.png) [@Alexandre](https://community.onlyoffice.com/u/Alexandre)
#### Post date: [15 July 2025 09:45 UTC](https://community.onlyoffice.com/t/what-are-the-eventnames-in-the-attachevent-function-of-the-spreadsheet-api/12492/9 "2025-07-15T09:45:39Z")

</div>


