Add a function that will periodically automatically save changes made while in the editor is open.