Skip to content

Commit

Permalink
DOC-2151: Expand upon the "+setup+ and +init_instance_callback+ o…
Browse files Browse the repository at this point in the history
…ptions" section
  • Loading branch information
FarzadHayat committed Jul 17, 2024
1 parent 657030a commit 198da64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/ROOT/pages/events.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ tinymce.activeEditor.on('click', (e) => {

=== `+setup+` and `+init_instance_callback+` options

The `+setup+` option is used to bind an event **before** the editor instance is initialized.
A common use case for setting up events is to use the `+setup+` and `+init_instance_callback+` options. These options allow you to bind events before and after the editor instance is initialized.

The `+init_instance_callback+` option is used to bind an event **after** the editor instance is initialized.
The `+setup+` option can be used to bind an event **before** the editor instance is initialized.

The `+init_instance_callback+` option can be used to bind an event **after** the editor instance is initialized.

TIP: The `+init_instance_callback+` is functionally equivalent to binding an event listener to the `init` event on the `+setup+` option.

Expand Down

0 comments on commit 198da64

Please sign in to comment.