# BlockEditorBeforePasteEvent (@salmonui/rich-text)

> The BlockEditorBeforePasteEvent interface of @salmonui/rich-text: onBeforePaste: preventDefault() cancels the paste.

Canonical: https://salmonui.dev/docs/reference/rich-text/BlockEditorBeforePasteEvent

```ts
import type { BlockEditorBeforePasteEvent } from '@salmonui/rich-text';
```

Entry index: https://salmonui.dev/docs/reference/rich-text (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/rich-text.md).

## Reference

Kind: interface

```ts
interface BlockEditorBeforePasteEvent {
    readonly html: string;
    readonly text: string;
    readonly files: readonly File[];
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

`onBeforePaste`: `preventDefault()` cancels the paste.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `html` | `readonly html: string;` |  |  |
| `text` | `readonly text: string;` |  |  |
| `files` | `readonly files: readonly File[];` |  |  |
| `preventDefault` | `preventDefault(): void;` |  |  |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
