Commit 81b5939
committed
fix: preserve line breaks when pasting text
Pasting text with line breaks via document.execCommand stopped working:
- It used to preserve line breaks.
- Now it replaces them with brs.
So I switched to the Selection API.1 parent 4815839 commit 81b5939
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
| |||
0 commit comments