mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-26 02:37:49 +08:00
8 lines
189 B
Markdown
8 lines
189 B
Markdown
# deleteSelection
|
|
The `deleteSelection` command deletes the currently selected nodes. If no selection exists, nothing will be deleted.
|
|
|
|
## Usage
|
|
```js
|
|
editor.commands.deleteSelection()
|
|
```
|