Vizel API / core/src / createVizelUploadEventHandler
Function: createVizelUploadEventHandler()
ts
function createVizelUploadEventHandler(options): (event) => void;Defined in: packages/core/src/utils/editorHelpers.ts:141
Creates an event handler for the vizel:upload-image custom event. This handler is used by the slash command to trigger image uploads.
Parameters
| Parameter | Type |
|---|---|
options | VizelCreateUploadEventHandlerOptions |
Returns
(event) => void