mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-09 09:22:16 +02:00
Use user autosave delay
This commit is contained in:
parent
265b2ed9d4
commit
7cbfacbbdd
|
@ -1667,7 +1667,7 @@ EasyMDE.prototype.autosave = function () {
|
||||||
// Restart autosaving in case the submit will be cancelled down the line
|
// Restart autosaving in case the submit will be cancelled down the line
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
easyMDE.autosave();
|
easyMDE.autosave();
|
||||||
}, 10000);
|
}, easyMDE.options.autosave.delay || 10000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue