docs: describe selectAll

This commit is contained in:
Hans Pagel
2021-06-22 21:35:39 +02:00
parent b226f77754
commit b6e276f12a
3 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
# selectAll
Selects the whole document at once.
<ContentMissing />
## Usage
```js
// Select the whole document
editor.commands.selectAll()
```

View File

@@ -1,7 +1,7 @@
# setTextSelection
If you think of selection in the context of an editor, youll probably think of a text selection. With `setTextSelection` you can control that text selection and set it to a specified range or position.
See also: [focus](/api/commands/focus), [setNodeSelection](/api/commands/set-node-selection), [deleteSelection](/api/commands/delete-selection)
See also: [focus](/api/commands/focus), [setNodeSelection](/api/commands/set-node-selection), [deleteSelection](/api/commands/delete-selection), [selectAll](/api/commands/select-all)
## Parameters
`position: number | Range`

View File

@@ -192,7 +192,7 @@
type: draft
- title: selectAll
link: /api/commands/select-all
type: draft
type: new
- title: selectNodeBackward
link: /api/commands/select-node-backward
type: draft