mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-10-29 07:11:22 +01:00
Fixed another sendkeys bug
This commit is contained in:
parent
e385e78310
commit
68ed9b219f
@ -146,7 +146,7 @@ IERange.prototype._nativeSelection = function (){
|
|||||||
// returns [start, end] for the selection constrained to be in element
|
// returns [start, end] for the selection constrained to be in element
|
||||||
var rng = this._nativeRange(); // range of the element to constrain to
|
var rng = this._nativeRange(); // range of the element to constrain to
|
||||||
var len = this.length();
|
var len = this.length();
|
||||||
if (this._doc.selection.type != 'Text') return [len, len]; // append to the end
|
if (this._doc.selection.type != 'Text') return [0,0]; // append to the end
|
||||||
var sel = this._doc.selection.createRange();
|
var sel = this._doc.selection.createRange();
|
||||||
try{
|
try{
|
||||||
return [
|
return [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user