Extension Event Hooks¶
The editor will trigger certain events on various operations, all editor hooks will start with onEditor*. Ideally you will just do simple operations in your event callbacks, so not to trigger an infinite loop of events. Try not to call editor API functions in your extension event hook. The events triggered by editor API are documented below (`Editor API Functions`_) at the beginning of each module.
Naming conventions for the events:
- onEditorSomethingCreated - called after the thing was created
- onEditorSomethingDelete - not deleted, because it is called before the thing is actually deleted
- onEditorSomethingChanged - called after the thing changed
- onEditorSomethingChange - called before the thing is about to change