Ignore:
Timestamp:
09/09/11 15:26:36 (13 years ago)
Author:
airton
Message:

Ticket #2086 - Troca do atual editor de emails do expresso

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/abas.js

    r4889 r5083  
    11var BordersArray = new Array(); 
    22BordersArray[0] = new setBorderAttributes(0); 
     3var countBorders = 0;  
    34 
    45function setBorderAttributes(ID) 
     
    5657                        if(Element("font_border_id_"+BordersArray[i].sequence)) 
    5758                                Element("font_border_id_"+BordersArray[i].sequence).className = 'font-menu';     
    58                         var body = Element('body_'+BordersArray[i].sequence); 
    59                         if (body) 
    60                         { 
    61                                 try 
    62                                 { 
    63                                         if (Element('viewsource_rt_checkbox_' + ID).checked) 
    64                                         {   
    65                                                 connector.loadScript("rich_text_editor"); 
    66                                                 RichTextEditor.viewsource(false); 
    67                                         } 
    68                                 } 
    69                                 catch(e) 
    70                                 { 
    71                                         //alert(e.message) 
    72                                 } 
    73                         } 
     59 
    7460                } 
    7561        } 
     
    8470                c.style.display = ''; 
    8571 
    86         body = document.getElementById('body_'+ ID); 
    87         if (body){ 
    88                 try{ 
    89                         if(ID){ 
    90                                 connector.loadScript("rich_text_editor"); 
    91                                 if(typeof(RichTextEditor) == 'undefined'){ 
    92                                         setTimeout('alternate_border(\''+ID+'\');',500); 
    93                                         return false; 
    94                                 } 
    95                                 RichTextEditor.loadEditor(ID); 
    96                         } 
    97                         body.contentWindow.document.designMode="on"; 
    98                 } 
    99                 catch(e){ 
    100                         //alert(e.message); 
    101                 } 
    102         } 
    10372 
    10473        // hide the DropDrowContact, if necessary 
     
    131100                document.getElementById('to_'+ID).focus(); 
    132101        } 
    133  
     102         
     103        RichTextEditor.setEditable(ID); 
    134104        return ID; 
    135105} 
     
    397367        content.parentNode.removeChild(content); 
    398368        resizeWindow(); 
     369        RichTextEditor.destroy( 'body_'+ID ); 
    399370        return true; 
    400371} 
Note: See TracChangeset for help on using the changeset viewer.