mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 13:30:28 +00:00
Merge pull request #19128 from joshaber/patch-1
Add `getSelections` to CodeMirror
This commit is contained in:
Vendored
+3
@@ -498,6 +498,9 @@ declare namespace CodeMirror {
|
||||
|
||||
/** Get the currently selected code. */
|
||||
getSelection(): string;
|
||||
|
||||
/** Returns an array containing a string for each selection, representing the content of the selections. */
|
||||
getSelections(lineSep?: string): Array<string>;
|
||||
|
||||
/** 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. */
|
||||
|
||||
Reference in New Issue
Block a user