If you tried to undo insertable insertion with Ctrl-z, it will remove also part of the text you typed earlier.
Fixing this is possible in some modern browsers, see:
- http://help.dottoro.com/ljuecqgv.php
- https://developer.mozilla.org/en-US/docs/Web/API/document.createEvent
Perhaps the VE team has a solution for this as well.