Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions docs/content/docs/reference/editor/manipulating-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,26 @@ editor.replaceBlocks(
#### Reordering Blocks

```typescript
moveBlocksUp(): void
moveBlocksDown(): void
moveBlocksUp(blockIdentifier?: BlockIdentifier): void
moveBlocksDown(blockIdentifier?: BlockIdentifier): void
```

Moves the currently selected blocks up or down in the document.
Moves the currently selected blocks up or down in the document. If a
`blockIdentifier` is provided, that block is moved instead of the selection,
and the selection is left unchanged.

```typescript
// Move selected blocks up
editor.moveBlocksUp();

// Move selected blocks down
editor.moveBlocksDown();

// Move a specific block up, without changing the selection
editor.moveBlocksUp("block-123");

// Move a specific block down, without changing the selection
editor.moveBlocksDown("block-123");
```

### Nesting Blocks
Expand Down
Loading
Loading