diff --git a/lib/ace/document.js b/lib/ace/document.js index dc2389fb..91548c21 100644 --- a/lib/ace/document.js +++ b/lib/ace/document.js @@ -81,10 +81,12 @@ var Document = function(text, mode) { this.modified = true; this.fireChangeEvent(0); }; - + this.toString = function() { return this.lines.join(this.$getNewLineCharacter()); }; + + this.getValue = this.toString; this.getSelection = function() { return this.selection;