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

8 lines
189 B
Markdown
Raw Normal View History

2021-04-21 17:03:33 +08:00
# deleteSelection
The `deleteSelection` command deletes the currently selected nodes. If no selection exists, nothing will be deleted.
2021-04-21 17:03:33 +08:00
## Usage
```js
editor.commands.deleteSelection()
```