View as Markdown

API reference: @salmonui/rich-text

BlockEditorPasteEventinterface

import type { BlockEditorPasteEvent } from '@salmonui/rich-text';
interface BlockEditorPasteEvent {
    readonly html: string;
    readonly text: string;
    readonly blocks: Block[];
}

onPaste: after pasted content was applied.

BlockEditorPasteEvent members (3)
NameSignatureDescription
htmlreadonly html: string;
textreadonly text: string;
blocksreadonly blocks: Block[];

The document after the paste.