tiptap/docs/api/commands/delete-range.md

11 lines
225 B
Markdown
Raw Normal View History

2021-04-21 17:03:33 +08:00
# deleteRange
The `deleteRange` command deletes everything in a given range. It requires a `range` attribute of type `Range`.
2021-04-21 17:03:33 +08:00
## Parameters
`range: Range`
## Usage
```js
editor.commands.deleteRange({ from: 0, to: 12 })
```