add a getValue to match setValue (it's just a synonym for toString)
This commit is contained in:
parent
3210edda92
commit
71d98abe1e
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue