Skip to content

Vizel API / core/src / createVizelUploadEventHandler

Function: createVizelUploadEventHandler() ​

ts
function createVizelUploadEventHandler(options): (event) => void;

Defined in: packages/core/src/utils/editorHelpers.ts:142

Creates an event handler for the vizel:upload-image custom event. This handler is used by the slash command to trigger image uploads.

Parameters ​

ParameterType
optionsVizelCreateUploadEventHandlerOptions

Returns ​

(event) => void

Released under the MIT License.