Save current state of the buffer when editing a page, so in case the page is closed or the browser crashes, the work is not lost.
This would work better with a warning when the page has been changed since the time the draft was saved.