From e718619051e756ef36874f51b7ad867b9ee63709 Mon Sep 17 00:00:00 2001 From: Leonard Teo Date: Fri, 22 Jan 2016 10:23:54 -0500 Subject: [PATCH] Fixed bug with getValue() failing when in sourceview --- src/editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/editor.js b/src/editor.js index be4134e..4d8b8a3 100644 --- a/src/editor.js +++ b/src/editor.js @@ -153,6 +153,10 @@ }, getValue: function(parse, clearInternals) { + // Check which editor to get value from + if (this.currentView == "source") { + return this.sourceView.textarea.value; + } return this.currentView.getValue(parse, clearInternals); },