From b6e276f12adb57ce906e968673c91da72c29ed10 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Tue, 22 Jun 2021 21:35:39 +0200 Subject: [PATCH] docs: describe selectAll --- docs/src/docPages/api/commands/select-all.md | 7 ++++++- docs/src/docPages/api/commands/set-text-selection.md | 2 +- docs/src/links.yaml | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/src/docPages/api/commands/select-all.md b/docs/src/docPages/api/commands/select-all.md index a4744818..ee6f1380 100644 --- a/docs/src/docPages/api/commands/select-all.md +++ b/docs/src/docPages/api/commands/select-all.md @@ -1,3 +1,8 @@ # selectAll +Selects the whole document at once. - +## Usage +```js +// Select the whole document +editor.commands.selectAll() +``` diff --git a/docs/src/docPages/api/commands/set-text-selection.md b/docs/src/docPages/api/commands/set-text-selection.md index ab53d5cf..20a594c2 100644 --- a/docs/src/docPages/api/commands/set-text-selection.md +++ b/docs/src/docPages/api/commands/set-text-selection.md @@ -1,7 +1,7 @@ # 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. -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` diff --git a/docs/src/links.yaml b/docs/src/links.yaml index 9d17ee6f..9bcb0e7b 100644 --- a/docs/src/links.yaml +++ b/docs/src/links.yaml @@ -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