mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-12 04:24:28 -06:00
Bug Fix: Issue with autosave not finding saved text
This commit is contained in:
parent
e072698b78
commit
a772676b78
2
simplemde.min.css
vendored
2
simplemde.min.css
vendored
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* SimpleMDE v1.2.0 (https://github.com/NextStepWebs/simplemde-markdown-editor)
|
||||
* SimpleMDE v1.2.1 (https://github.com/NextStepWebs/simplemde-markdown-editor)
|
||||
* Copyright Next Step Webs, Inc.
|
||||
* Licensed under the MIT license
|
||||
*/
|
||||
|
6
simplemde.min.js
vendored
6
simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
@ -547,7 +547,9 @@ SimpleMDE.prototype.autosave = function() {
|
||||
}
|
||||
|
||||
if(this.options.autosave.loaded !== true){
|
||||
this.codemirror.setValue(localStorage.getItem(this.options.autosave.unique_id));
|
||||
if(localStorage.getItem(this.options.autosave.unique_id) != null)
|
||||
this.codemirror.setValue(localStorage.getItem(this.options.autosave.unique_id));
|
||||
|
||||
this.options.autosave.loaded = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user