Changeset 2592:5edbd7c3d2d7 for admin/js
- Timestamp:
- 11/26/13 22:35:27 (12 years ago)
- Branch:
- 2.6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/jsToolBar/jsToolBar.wysiwyg.js
r2566 r2589 527 527 html = html.replace(/\r\n/g,"\n"); 528 528 529 /* Trim */ 530 html = html.replace(/^\s+/gm,''); 531 html = html.replace(/\s+$/gm,''); 529 /* Trim only if there's no pre tag */ 530 pattern_pre = /<pre>[\s\S]*<\/pre>/gi; 531 if (!pattern_pre.test(html)) { 532 html = html.replace(/^\s+/gm,''); 533 html = html.replace(/\s+$/gm,''); 534 } 532 535 533 536 return html;
Note: See TracChangeset
for help on using the changeset viewer.