caret-pos

Locate the current position of the caret. A plain JavaScript version of Caret.js.

Browse on unpkg