diff --git a/src/js/editormd.js b/src/js/editormd.js index e10f7ff..7cb57a4 100644 --- a/src/js/editormd.js +++ b/src/js/editormd.js @@ -2011,7 +2011,7 @@ */ getHTML : function() { - if (!settings.saveHTMLToTextarea) + if (!this.settings.saveHTMLToTextarea) { alert("Error: settings.saveHTMLToTextarea == false"); @@ -2036,14 +2036,14 @@ */ getPreviewedHTML : function() { - if (!settings.watch) + if (!this.settings.watch) { alert("Error: settings.watch == false"); return false; } - return this.preivewContainer.html(); + return this.previewContainer.html(); }, /** @@ -2898,4 +2898,4 @@ return editormd; -})); \ No newline at end of file +}));