Skip to content

OnPasteFn

OnPasteFn: (data) => OnPasteResultOrPromise

It is encouraged not to return Promise<undefined> from the OnPasteFn as a mechanism to fall back to the native paste behaviour. This doesn’t work in all cases. Always return plain undefined if possible.

Parameters

data

PasteData

Returns

OnPasteResultOrPromise

Defined in

packages/editor/src/types/editor.ts:360