Ignore:
Timestamp:
08/03/10 17:00:29 (14 years ago)
Author:
niltonneto
Message:

Ticket #1111 - Corrigido problema ao editar/imprimir mensagens com tags <pre>.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/expressoMail1_2/js/main.js

    r2967 r3128  
    13311331                title = title.substring(0, parseInt(resize)*0.08); 
    13321332 
     1333        // Load default style for <PRE> tag, inside RichTextEditor. 
     1334        RichTextEditor.loadStyle("pre","main.css");      
     1335 
    13331336        Element("border_id_" + new_border_ID).innerHTML = "<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td id=font_border_id_" + new_border_ID +" class='font-menu' width=*>" +title + "</td><td width=1px><img onmousedown='javascript:return false' style='cursor:pointer' onclick=delete_border('" + new_border_ID + "','false') src='templates/"+template+"/images/close_button.gif'></td></tr></table>"; 
    13341337        return new_border_ID; //Preciso retornar o ID da nova mensagem. 
     
    20032006        } 
    20042007         
     2008        var current_path = window.location.href.substr(0,window.location.href.lastIndexOf("/")); 
     2009        var window_print_head  = window_print.document.getElementsByTagName("head")[0]; 
     2010        // For IE 
     2011        if(typeof(window_print_head) == 'undefined'){ 
     2012                window_print_head = window_print.document.createElement("head"); 
     2013                window_print.document.appendChild(window_print_head); 
     2014        } 
     2015        var window_print_style = window_print.document.createElement("LINK"); 
     2016        window_print_style.href = current_path+'/templates/default/main.css'; 
     2017        window_print_style.type = "text/css"; 
     2018        window_print_style.rel = "stylesheet"; 
     2019        window_print_head.appendChild(window_print_style); 
     2020         
    20052021        while (1){ 
    20062022                try{ 
    2007                         var html = '<br><br>'; 
    2008                         //html += "<input type='button' value='Imprimir' onclick='javascript:window.print();'>"; 
     2023                        var html ='<body>'; 
    20092024                        html += "<h4>ExpressoLivre - ExpressoMail</h4><hr>"; 
    20102025                        html += '<table><tbody>'; 
     
    20272042                        html += "<tr><td width=7%><font size='2'>" + get_lang('Subject')+ ": </font></td><td><font size='2'>"+subject.innerHTML+"</font></td></tr>"; 
    20282043                        html += "</tbody></table><hr>"; 
    2029                         window_print.document.body.innerHTML = html + '<blockquote><font size="2">' + body.innerHTML + '</font></blockquote>'; 
     2044                        window_print.document.body.innerHTML = html + body.innerHTML; 
    20302045                        if(!is_ie){ 
    20312046                                var tab_tags = window_print.document.getElementsByTagName("IMG");                        
Note: See TracChangeset for help on using the changeset viewer.