0lumide/Ellipsis

Caret position wrong on contenteditable="plaintext-only"

Opened this issue · 0 comments

When an element uses contenteditable="plaintext-only" instead of contenteditable="true" the caret position returned by Caret.js is always at the beginning of the element, instead of at the caret position.

Note:

"plaintext-only" is a non-standard value forcontenteditable on chrome.

Youtube currently use this to make their comments editable.