Changeset 2589:3d427735ca70 for admin
- Timestamp:
- 11/26/13 20:42:50 (12 years ago)
- Branch:
- default
- Children:
- 2593:6741802596a0, 2595:84b6d63767f6
- 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.