@shakrmedia/editor-sdk ShakrreadyEditor > on
ShakrreadyEditor.on() method
error event emitted when there is an error while loading Shakrready Editor. Shakrready Editor iframe window will be closed when this event is emitted.
on(type: 'error', listener: (data: ShakrreadyEditorErrorEvent) => void): this;
Parameters
| Parameter | Type | Description |
|---|---|---|
| type | 'error' | 'error' |
| listener | (data: ShakrreadyEditorErrorEvent) => void | event listener function |
this