diff --git a/app/assets/javascripts/editor/editor.js.erb b/app/assets/javascripts/editor/editor.js.erb index ddbe2e54..0668cbc0 100644 --- a/app/assets/javascripts/editor/editor.js.erb +++ b/app/assets/javascripts/editor/editor.js.erb @@ -680,5 +680,7 @@ configureEditors: function () { this.showFirstFile(); $(window).on("beforeunload", this.unloadAutoSave.bind(this)); + // create autosave when the editor is opened the first time + this.autosave().bind(this); } }; \ No newline at end of file