mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "Rename all test files from JS -> ES6"
This reverts commit 2abe85b834.
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
export function setTextareaSelection(textarea, selectionStart, selectionEnd) {
|
||||
textarea.selectionStart = selectionStart;
|
||||
textarea.selectionEnd = selectionEnd;
|
||||
}
|
||||
|
||||
export function getTextareaSelection(textarea) {
|
||||
const start = textarea.selectionStart;
|
||||
const end = textarea.selectionEnd;
|
||||
return [start, end - start];
|
||||
}
|
||||
Reference in New Issue
Block a user