Ticket #656: _getSelection.patch
| File _getSelection.patch, 0.7 kB (added by mokhet, 6 years ago) |
|---|
-
htmlarea.js
4367 4367 // selection & ranges 4368 4368 4369 4369 // returns the current selection object 4370 HTMLArea.prototype._getSelection = function() {4371 if (HTMLArea.is_ie) {4370 if (HTMLArea.is_ie) { 4371 HTMLArea.prototype._getSelection = function() { 4372 4372 return this._doc.selection; 4373 } else { 4373 }; 4374 } else { 4375 HTMLArea.prototype._getSelection = function() { 4374 4376 return this._iframe.contentWindow.getSelection(); 4375 } 4376 } ;4377 }; 4378 } 4377 4379 4378 4380 // returns a range for the current selection 4379 4381 HTMLArea.prototype._createRange = function(sel) {
