MCPcopy
hub / github.com/antonmedv/codejar / afterCursor

Function afterCursor

codejar.ts:308–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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') {

Callers 2

handleNewLineFunction · 0.85
legacyNewLineFixFunction · 0.85

Calls 1

getSelectionFunction · 0.85

Tested by

no test coverage detected