pull/265/merge
Joe "Andrew" Rawlinson-Bennett 8 years ago committed by GitHub
commit 2fa58c0b78

@ -1553,6 +1553,11 @@ SimpleMDE.prototype.autosave = function() {
if(simplemde.element.form != null && simplemde.element.form != undefined) {
simplemde.element.form.addEventListener("submit", function() {
/**
* Remove the autosave function to stop resaving the MDE after the
* submit has been started.
*/
SimpleMDE.prototype.autosave = function(){};
localStorage.removeItem("smde_" + simplemde.options.autosave.uniqueId);
});
}

Loading…
Cancel
Save