At.js
At.js copied to clipboard
Right arrow key jumps to end of line in contentEditable on WebKit browsers
There seems to be some odd behavior when using the arrow keys to navigate around inserted span elements on WebKit browsers. When using the arrow keys, the expected behavior would be that the cursor would jump to the beginning and end of the inserted element instead of to the beginning of the element and to the end of the line. To reproduce on the demo:
- insert an emoji/mention
- add some text after the emoji/mention
- navigate to before the emoji/mention on the same line
- use the right arrow key to navigate along the line and over the inserted emoji/mention
From what I can tell the   after the span element is used as a marker for the end of the inserted element but the   is replaced if the user enters any text after the element.

Thanks for the wonderful library!
Having the same problem here. Any updates on this?