From a8c7373cf31fb345b4eedeb43475c3f5ea678ee6 Mon Sep 17 00:00:00 2001 From: ucev Date: Thu, 9 Mar 2017 23:19:04 +0800 Subject: [PATCH] Update simplemde.js customize promptTexts for non-english users --- src/js/simplemde.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/simplemde.js b/src/js/simplemde.js index 9b50513..c61fd6f 100644 --- a/src/js/simplemde.js +++ b/src/js/simplemde.js @@ -1387,7 +1387,7 @@ function SimpleMDE(options) { // Merging the promptTexts, with the given options - options.promptTexts = promptTexts; + options.promptTexts = extend({}, promptTexts, options.promptTexts || {}); // Merging the blockStyles, with the given options @@ -2079,4 +2079,4 @@ SimpleMDE.prototype.toTextArea = function() { } }; -module.exports = SimpleMDE; \ No newline at end of file +module.exports = SimpleMDE;