Caret position wrong on contenteditable="plaintext-only"
Opened this issue · 0 comments
0lumide commented
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 for
contenteditable
on chrome.
Youtube currently use this to make their comments editable.