()
| 306 | } |
| 307 | |
| 308 | function afterCursor() { |
| 309 | const s = getSelection() |
| 310 | const r0 = s.getRangeAt(0) |
| 311 | const r = document.createRange() |
| 312 | r.selectNodeContents(editor) |
| 313 | r.setStart(r0.endContainer, r0.endOffset) |
| 314 | return r.toString() |
| 315 | } |
| 316 | |
| 317 | function handleNewLine(event: KeyboardEvent) { |
| 318 | if (event.key === 'Enter') { |
no test coverage detected