MCPcopy
hub / github.com/witheve/Eve / replaceSelection

Method replaceSelection

typings/codemirror/codemirror.d.ts:495–495  ·  view source on GitHub ↗

Replace the selection with the given string. By default, the new selection will span the inserted text. The optional collapse argument can be used to change this � passing "start" or "end" will collapse the selection to the start or end of the inserted text.

(replacement: string, collapse?: string)

Source from the content-addressed store, hash-verified

493 /** Replace the selection with the given string. By default, the new selection will span the inserted text.
494 The optional collapse argument can be used to change this � passing "start" or "end" will collapse the selection to the start or end of the inserted text. */
495 replaceSelection(replacement: string, collapse?: string): void;
496
497 /** start is a an optional string indicating which end of the selection to return.
498 It may be "start" , "end" , "head"(the side of the selection that moves when you press shift + arrow),

Callers 6

onCopyCutFunction · 0.80
onDropFunction · 0.80
onKeyDownFunction · 0.80
codemirror.jsFile · 0.80
maybeDuplicateInputFunction · 0.80
EditorClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected