Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emit events for toolbox and inline toolbar #2502

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

gorenburg
Copy link

Emit events for toolbox and inline toolbar that can be subscribed

Toolbox will now emit 3 events:

  • toolbox-opened
  • toolbox-closed
  • toolbox-block-added

Inline toolbar will now emit 2 events:

  • inline-toolbar-opened
  • inline-toolbar-closed

You will be able to subscribe to all mentioned events, for example:

editor.events.on('toolbox-opened', () => {
  console.log('event: toolbox opened')
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant