Changeset 500


Ignore:
Timestamp:
04/30/06 10:33:16 (13 years ago)
Author:
gogo
Message:

Two things,

  1. Continuation of changeset:499
  2. Fix for ticket:351
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r497 r500  
    835835}; 
    836836 
     837HTMLArea.Config.prototype.removeToolbarElement = HTMLArea.Config.prototype.hideSomeButtons; 
     838 
    837839/** Helper function: replace all TEXTAREA-s in the document with HTMLArea-s. */ 
    838840HTMLArea.replaceAll = function(config) 
     
    38713873    var sel = this._getSelection(); 
    38723874    var range = this._createRange(sel); 
    3873     return range.htmlText; 
     3875     
     3876    // Need to be careful of control ranges which won't have htmlText 
     3877    if( range.htmlText ) 
     3878    { 
     3879      return range.htmlText 
     3880    } 
     3881    else if(range.length >= 1) 
     3882    { 
     3883      return range.item(0).outerHTML; 
     3884    } 
     3885     
     3886    return ''; 
    38743887  }; 
    38753888} 
Note: See TracChangeset for help on using the changeset viewer.