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); },