We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f830bc5 commit 5c4adfaCopy full SHA for 5c4adfa
2-ui/99-ui-misc/02-selection-range/article.md
@@ -620,7 +620,7 @@ The second API is very simple, as it works with text.
620
The most used recipes are probably:
621
622
1. Getting the selection:
623
- ```js run
+ ```js
624
let selection = document.getSelection();
625
626
let cloned = /* element to clone the selected nodes to */;
@@ -632,7 +632,7 @@ The most used recipes are probably:
632
}
633
```
634
2. Setting the selection:
635
636
637
638
// directly:
0 commit comments