mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-01 23:24:28 -06:00
Merge pull request #10 from NextStepWebs/development
Fix autosave issue
This commit is contained in:
commit
f69c39f5ad
@ -110,6 +110,7 @@ As mentioned earlier, SimpleMDE is an improvement of [lepture's Editor project](
|
|||||||
- Many changes to the style, appearance, and userfriendliness
|
- Many changes to the style, appearance, and userfriendliness
|
||||||
- Interface more closely resembles Bootstrap
|
- Interface more closely resembles Bootstrap
|
||||||
- Now mobile friendly
|
- Now mobile friendly
|
||||||
|
- Option to autosave the text as you type
|
||||||
- The text editor now automatically grows as you type more
|
- The text editor now automatically grows as you type more
|
||||||
- Fixed a large amount of bugs
|
- Fixed a large amount of bugs
|
||||||
- Switched to Font Awesome icons
|
- Switched to Font Awesome icons
|
||||||
|
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.
|
* Copyright Next Step Webs, Inc.
|
||||||
* Licensed under the MIT license
|
* 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){
|
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;
|
this.options.autosave.loaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user