From 503894f247255f34aa514479340536f730d63849 Mon Sep 17 00:00:00 2001 From: Bob Ippolito Date: Tue, 10 Dec 2024 21:52:41 -0800 Subject: [PATCH] fix doc typo --- packages/lexical-website/docs/concepts/selection.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lexical-website/docs/concepts/selection.md b/packages/lexical-website/docs/concepts/selection.md index 429f41d7c6c..0923b3befa1 100644 --- a/packages/lexical-website/docs/concepts/selection.md +++ b/packages/lexical-website/docs/concepts/selection.md @@ -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`, @@ -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(/* … */); }); ```