From 0e87bb4a6fec8357af88eb10f432d332593ebf47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=9A=86=E5=8D=9A?= Date: Thu, 19 Feb 2015 00:16:56 +0800 Subject: [PATCH 1/3] Update editormd.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正undefined错误 --- src/js/editormd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/editormd.js b/src/js/editormd.js index 3cb862e..d649130 100644 --- a/src/js/editormd.js +++ b/src/js/editormd.js @@ -2040,7 +2040,7 @@ */ getPreviewedHTML : function() { - if (!settings.watch) + if (!this.settings.watch) { alert("Error: settings.watch == false"); @@ -2902,4 +2902,4 @@ return editormd; -})); \ No newline at end of file +})); From ccf32529a651d46c7da337ee6afd9502af5ac984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=9A=86=E5=8D=9A?= Date: Thu, 19 Feb 2015 00:30:28 +0800 Subject: [PATCH 2/3] Update editormd.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正setting变量出现undefined错误 --- src/js/editormd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/editormd.js b/src/js/editormd.js index d649130..3f5e5db 100644 --- a/src/js/editormd.js +++ b/src/js/editormd.js @@ -2015,7 +2015,7 @@ */ getHTML : function() { - if (!settings.saveHTMLToTextarea) + if (!this.settings.saveHTMLToTextarea) { alert("Error: settings.saveHTMLToTextarea == false"); From 24ee4f8d4b568c361ddd2e764f8f08530a6dbc16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E9=9A=86=E5=8D=9A?= Date: Thu, 19 Feb 2015 00:31:21 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=AD=A3getPreviewedHTML=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96html=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/editormd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/editormd.js b/src/js/editormd.js index 3f5e5db..13b6052 100644 --- a/src/js/editormd.js +++ b/src/js/editormd.js @@ -2047,7 +2047,7 @@ return false; } - return this.preivewContainer.html(); + return this.previewContainer.html(); }, /**