Changeset 626
- Timestamp:
 - 05/25/09 15:40:55 (3 years ago)
 - File:
 - 
          
- 1 edited
 
- 
          trunk/src/wymeditor/jquery.wymeditor.js (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
trunk/src/wymeditor/jquery.wymeditor.js
r625 r626 3445 3445 { 3446 3446 var matches = xhtml.match(new RegExp('<pre[^>]*>(.*?)<\/pre>','gmi')); 3447 for(var i=0; i<matches.length; i++) { 3448 xhtml = xhtml.replace(matches[i], matches[i].replace(new RegExp('<br \/>', 'g'), String.fromCharCode(13,10))); 3447 if(matches) { 3448 for(var i=0; i<matches.length; i++) { 3449 xhtml = xhtml.replace(matches[i], matches[i].replace(new RegExp('<br \/>', 'g'), String.fromCharCode(13,10))); 3450 } 3449 3451 } 3450 3452 return xhtml;  
Note: See TracChangeset
          for help on using the changeset viewer.