docs: describe selectAll
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
# selectAll
|
# selectAll
|
||||||
|
Selects the whole document at once.
|
||||||
|
|
||||||
<ContentMissing />
|
## Usage
|
||||||
|
```js
|
||||||
|
// Select the whole document
|
||||||
|
editor.commands.selectAll()
|
||||||
|
```
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# setTextSelection
|
# setTextSelection
|
||||||
If you think of selection in the context of an editor, you’ll probably think of a text selection. With `setTextSelection` you can control that text selection and set it to a specified range or position.
|
If you think of selection in the context of an editor, you’ll 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
|
## Parameters
|
||||||
`position: number | Range`
|
`position: number | Range`
|
||||||
|
|||||||
@@ -192,7 +192,7 @@
|
|||||||
type: draft
|
type: draft
|
||||||
- title: selectAll
|
- title: selectAll
|
||||||
link: /api/commands/select-all
|
link: /api/commands/select-all
|
||||||
type: draft
|
type: new
|
||||||
- title: selectNodeBackward
|
- title: selectNodeBackward
|
||||||
link: /api/commands/select-node-backward
|
link: /api/commands/select-node-backward
|
||||||
type: draft
|
type: draft
|
||||||
|
|||||||
Reference in New Issue
Block a user