Api.attachEvent, What are the optional parameters in the method?

When I look at the documentation, I can’t find the first parameter optional values in the Api.attachEvent method. Where can I look it up?

Hello @Luyuanyou

Frankly, I am not quite following the description. The documentation on attachEvent method is available here:
https://api.onlyoffice.com/docs/plugin-and-macros/interacting-with-editors/overview/how-to-attach-events/

There are generally two parameters:

  • id - a name of the event you’d like to attach;
  • action - what to do when event is triggered.

What are the optional values for “id”?

What do you mean? There are tow parameters and that is it.