UNPKG

caret-pos

Version:

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

25 lines (18 loc) 736 B
# Caret Pos # Version 2.0.0 - 2020-06-02 - Renamed UMD module from `caret-pos` to `caretPos` - Updated packages # Version 1.2.2 - 2020-02-08 - Added typings - Removed `yarn` in preference to `npm` - Updated vulnerable packages - `isContentEditable` will support other browser APIs where `element.contentEditable` can only be accessed by `element.getAttribute('contentEditable')`. # Version 1.2.1 - 2018-09-04 - Removed conversion from `\s` to ` ` for Firefox. It's not needed. # Version 1.2.0 - 2018-08-28 - Added `customPos` option to `offset` # Version 1.1.0 - 2018-07-26 - Added `noShadowCart` option to `offset` # Version 1.0.0 - 2018-02-05 - Added the caret pos to return object of position function. - Added unit tests