Changeset 500
- Timestamp:
- 04/30/06 05:33:16 (6 years ago)
- Files:
-
- 1 modified
-
trunk/htmlarea.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htmlarea.js
r497 r500 835 835 }; 836 836 837 HTMLArea.Config.prototype.removeToolbarElement = HTMLArea.Config.prototype.hideSomeButtons; 838 837 839 /** Helper function: replace all TEXTAREA-s in the document with HTMLArea-s. */ 838 840 HTMLArea.replaceAll = function(config) … … 3871 3873 var sel = this._getSelection(); 3872 3874 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 ''; 3874 3887 }; 3875 3888 }
