From 85350aa4435a4d171450bb433d4f47270a01ec60 Mon Sep 17 00:00:00 2001 From: Franck Deroche Date: Thu, 26 Jul 2018 22:56:21 +0200 Subject: [PATCH] Handle two editors with different toolbars on the same page --- editormd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editormd.js b/editormd.js index b901a8b..d0c5d5d 100644 --- a/editormd.js +++ b/editormd.js @@ -365,7 +365,7 @@ var _this = this; var classPrefix = this.classPrefix = editormd.classPrefix; - var settings = this.settings = $.extend(true, editormd.defaults, options); + var settings = this.settings = $.extend(true, {}, editormd.defaults, options); id = (typeof id === "object") ? settings.id : id;