tiptap/docs/api/commands/delete-range.md
2022-06-08 12:15:59 +02:00

11 lines
225 B
Markdown

# deleteRange
The `deleteRange` command deletes everything in a given range. It requires a `range` attribute of type `Range`.
## Parameters
`range: Range`
## Usage
```js
editor.commands.deleteRange({ from: 0, to: 12 })
```