Skip to content

Commit

Permalink
fix doc typo
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Dec 11, 2024
1 parent 31902e3 commit 503894f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lexical-website/docs/concepts/selection.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ changing the selection, can use the `'skip-dom-selection'` update tag

```js
// Call this from an editor.update or command listener
$addTag('skip-dom-selection');
$addUpdateTag('skip-dom-selection');
```

If you want to add this tag during processing of a `dispatchCommand`,
Expand All @@ -144,7 +144,7 @@ you can wrap it in an `editor.update`:
// confusing semantics (dispatchCommand will re-use the
// current update without nesting)
editor.update(() => {
$addTag('skip-dom-selection');
$addUpdateTag('skip-dom-selection');
editor.dispatchCommand(/**/);
});
```
Expand Down

0 comments on commit 503894f

Please sign in to comment.