Plugin init is triggered on every select (bug?)

I am implementing a plugin that works with the Document Editor (version 8.3). The plugin is running with Angular 18 and the init function is triggered inside the main component.

What I’ve observed is that the init function is triggered each time I select a word inside the document using double click. The plugin is not listening to any editor events and is not reacting / reloading / triggering any lifecycle hooks.

Is this behaviour a bug or intended? If it is intended, what is the purpose and what are the changes that occur?

Hello @dorin,
Please check whether you are setting initOnSelectionChanged to true in your config.json

The plugin is not listening to any editor events

Have you listed the events here Manifest | ONLYOFFICE ?