Caret position after nodeview insert on empty line

The library contains a bunch of hacks to try and work around these kind of issues, but I guess this one isn’t being detected. Generally, resetting the DOM selection solves these in Chrome. Could you try to create the smallest possible script that demonstrates the problem? I can try to see why the regular hack isn’t kicking in then.