Added putting undo events from outside. Fixed returned delete position.