@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.
on(type: 'error', listener: (data: ShakrEditorErrorEvent) => void): this;
Parameters
| Parameter | Type | Description |
|---|---|---|
| type | 'error' | 'error' |
| listener | (data: ShakrEditorErrorEvent) => void | event listener function |
this