# BlockEditorBeforeBlockMoveEvent (@salmonui/rich-text)

> The BlockEditorBeforeBlockMoveEvent interface of @salmonui/rich-text: onBeforeBlockMove: preventDefault() cancels the move.

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

```ts
import type { BlockEditorBeforeBlockMoveEvent } 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 BlockEditorBeforeBlockMoveEvent extends BlockEditorBlockMoveEvent {
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

`onBeforeBlockMove`: `preventDefault()` cancels the move.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `preventDefault` | `preventDefault(): void;` |  |  |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
| `block` | `block: Block;` | inherited |  |
| `from` | `from: BlockEditorBlockLocation;` | inherited |  |
| `position` | `position: BlockPosition;` | inherited |  |
| `source` | `source: "api" \| "keyboard" \| "pointer";` | inherited |  |
