1.1.4 • Published 9 years ago
get-input-selection v1.1.4
get-input-selection
getInputSelection() provides carrot position for textarea. Works as selectionBegin and selectionEnd for all browsers
usage
const { begin, end } = getInputSelection(textarea);