Content editable div badly behaved
AviFS opened this issue · comments
Avi Sternlieb commented
Setting:
$('input').innerHTML = out;
has the cursor keep jumping to the beginning.
There are a lot of fixes on SO for this, but they make spaces act like <br>
newlines for some reason.
So
$('input').innerHTML = out;
// SO accepted and highly voted function here
setCursorToEndContentEditable($('input'));
is also not working at all, but with a totally different issue. At least, not for the two answers I've tried.