Changeset 457 for trunk


Ignore:
Timestamp:
01/19/06 00:14:28 (14 years ago)
Author:
mokhet
Message:

apply getSelectedHTML patch from ticket #656 and fix BSD-style bracing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r456 r457  
    33383338 
    33393339/// Retrieve the selected block 
    3340 HTMLArea.prototype.getSelectedHTML = function() { 
    3341   var sel = this._getSelection(); 
    3342   var range = this._createRange(sel); 
    3343   var existing = null; 
    3344   if (HTMLArea.is_ie) { 
    3345     existing = range.htmlText; 
    3346   } else { 
    3347     existing = HTMLArea.getHTML(range.cloneContents(), false, this); 
    3348   } 
    3349   return existing; 
    3350 }; 
     3340if (HTMLArea.is_ie) 
     3341{ 
     3342  HTMLArea.prototype.getSelectedHTML = function() 
     3343  { 
     3344    var sel = this._getSelection(); 
     3345    var range = this._createRange(sel); 
     3346    return range.htmlText; 
     3347  }; 
     3348} 
     3349else 
     3350{ 
     3351  HTMLArea.prototype.getSelectedHTML = function() 
     3352  { 
     3353    var sel = this._getSelection(); 
     3354    var range = this._createRange(sel); 
     3355    return HTMLArea.getHTML(range.cloneContents(), false, this); 
     3356  }; 
     3357} 
    33513358 
    33523359/// Return true if we have some selection 
Note: See TracChangeset for help on using the changeset viewer.