@shakrmedia/editor-sdk ShakrEditor > on

ShakrEditor.on() method#

error event emitted when there is an error while loading Shakr Editor. Shakr Editor iframe window will be closed when this event is emitted.

Signature:
on(type: 'error', listener: (data: ShakrEditorErrorEvent) => void): this;

Parameters#

ParameterTypeDescription
type'error''error'
listener(data: ShakrEditorErrorEvent) => voidevent listener function
Returns:

this