allow passing line array to edit session
This commit is contained in:
parent
766af2388e
commit
b0224484ae
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ var EditSession = function(text, mode) {
|
|||
return str;
|
||||
}
|
||||
|
||||
if (typeof text == "object") {
|
||||
if (typeof text == "object" && text.getLine) {
|
||||
this.setDocument(text);
|
||||
} else {
|
||||
this.setDocument(new Document(text));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue