Ticket #656: _getSelection.patch

File _getSelection.patch, 676 bytes (added by mokhet, 14 years ago)
  • htmlarea.js

     
    43674367// selection & ranges 
    43684368 
    43694369// returns the current selection object 
    4370 HTMLArea.prototype._getSelection = function() { 
    4371   if (HTMLArea.is_ie) { 
     4370if (HTMLArea.is_ie) { 
     4371  HTMLArea.prototype._getSelection = function() { 
    43724372    return this._doc.selection; 
    4373   } else { 
     4373  }; 
     4374} else { 
     4375  HTMLArea.prototype._getSelection = function() { 
    43744376    return this._iframe.contentWindow.getSelection(); 
    4375   } 
    4376 }; 
     4377  }; 
     4378} 
    43774379 
    43784380// returns a range for the current selection 
    43794381HTMLArea.prototype._createRange = function(sel) {