The last 2 code snippets shouldn't be runnable
This commit is contained in:
parent
f830bc5d94
commit
5c4adfad8c
1 changed files with 2 additions and 2 deletions
|
@ -620,7 +620,7 @@ The second API is very simple, as it works with text.
|
|||
The most used recipes are probably:
|
||||
|
||||
1. Getting the selection:
|
||||
```js run
|
||||
```js
|
||||
let selection = document.getSelection();
|
||||
|
||||
let cloned = /* element to clone the selected nodes to */;
|
||||
|
@ -632,7 +632,7 @@ The most used recipes are probably:
|
|||
}
|
||||
```
|
||||
2. Setting the selection:
|
||||
```js run
|
||||
```js
|
||||
let selection = document.getSelection();
|
||||
|
||||
// directly:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue