|
|
@ -2049,8 +2049,7 @@ EasyMDE.prototype.render = function (el) {
|
|
|
|
if (options.status !== false) {
|
|
|
|
if (options.status !== false) {
|
|
|
|
this.gui.statusbar = this.createStatusbar();
|
|
|
|
this.gui.statusbar = this.createStatusbar();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var autosaveEnabled = options.autosave != undefined && options.autosave.enabled === true;
|
|
|
|
if (options.autosave != undefined && options.autosave.enabled === true) {
|
|
|
|
if (autosaveEnabled) {
|
|
|
|
|
|
|
|
this.autosave(); // use to load localstorage content
|
|
|
|
this.autosave(); // use to load localstorage content
|
|
|
|
this.codemirror.on('change', function () {
|
|
|
|
this.codemirror.on('change', function () {
|
|
|
|
clearTimeout(self._autosave_timeout);
|
|
|
|
clearTimeout(self._autosave_timeout);
|
|
|
|