From 31d1f366b05ee721e7bdec2e295308f7ee89b552 Mon Sep 17 00:00:00 2001 From: Dmitry Mazurov Date: Thu, 19 Mar 2020 11:59:53 +0300 Subject: [PATCH] Update easymde Signed-off-by: Dmitry Mazurov --- src/js/easymde.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/easymde.js b/src/js/easymde.js index 49411ef..cec1e7b 100644 --- a/src/js/easymde.js +++ b/src/js/easymde.js @@ -1633,8 +1633,10 @@ function EasyMDE(options) { options.statusTexts = extend({}, statusTexts, options.statusTexts || {}); - // Merging the Autosave timeFormat, with the given options - options.autosave.timeFormat = extend({}, timeFormat, options.autosave.timeFormat || {}); + if (options.autosave != undefined) { + // Merging the Autosave timeFormat, with the given options + options.autosave.timeFormat = extend({}, timeFormat, options.autosave.timeFormat || {}); + } // Merging the blockStyles, with the given options