Skip to content
This page is available as Markdown at /api/editor/type-aliases/onpastefn.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

OnPasteFn

OnPasteFn = (data) => OnPasteResultOrPromise

Defined in: packages/editor/src/types/editor.ts:166

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.

PasteData

OnPasteResultOrPromise