Dotclear

Changeset 2592:5edbd7c3d2d7


Ignore:
Timestamp:
11/26/13 22:35:27 (12 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
2.6
Message:

Backport fix for issue #1454

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/js/jsToolBar/jsToolBar.wysiwyg.js

    r2566 r2589  
    527527     html = html.replace(/\r\n/g,"\n"); 
    528528 
    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     } 
    532535 
    533536     return html; 
  • themes/ductile/style.css

    r2566 r2589  
    6767     border-bottom: 1px solid #aaa; 
    6868     font-size: .81em; 
    69      } 
    70 pre { 
    71      white-space: normal; 
    7269     } 
    7370a { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map