fix getAllRanges in singleSelect mode
This commit is contained in:
parent
94bea36cf1
commit
3fe075f2af
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ var EditSession = require("./edit_session").EditSession;
|
||||||
* @method Selection.getAllRanges
|
* @method Selection.getAllRanges
|
||||||
**/
|
**/
|
||||||
this.getAllRanges = function() {
|
this.getAllRanges = function() {
|
||||||
return this.rangeList.ranges.concat();
|
return this.rangeCount ? this.rangeList.ranges.concat() : [this.getRange()];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue