Fix bug: reset cursor position to beginning of text
(due to resetup editing views onResume)
Remove document state saving