Autosave the document and share its state