v8.38.0

Editor events

A list of events which we can use to respond to the editor interface state.

Editor Events

These are the events fired by the editor instance.

Name Description
'init' Fired when the editor instance is initialised.
'ready' Fired when editor UI is ready for input.
'undo' Fired on undo action.
'redo' Fired on redo action.
'revert' Fired on revert action. Will only be fired if willRevert resolves with true.
'destroy' Fired when the editor is destroyed.
'close' Fired when the editor is closed with the close button.

init

Fired when the editor instance is initialised, receives the instance as parameter.

ready

Fired when the editor interface is ready to be interacted with.

Instances created with the openEditor JavaScript API fire a couple additional events.

Name Description
'show' Fired when the modal is shown.
'hide' Fired when the modal is hidden.

show

Fired when the modal is shown.

hide

Fired when the modal is hidden.

close

Fired when the modal is closed using the top left close button.