Changeset 5083 for trunk/expressoMail1_2/js/abas.js
- Timestamp:
- 09/09/11 15:26:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/abas.js
r4889 r5083 1 1 var BordersArray = new Array(); 2 2 BordersArray[0] = new setBorderAttributes(0); 3 var countBorders = 0; 3 4 4 5 function setBorderAttributes(ID) … … 56 57 if(Element("font_border_id_"+BordersArray[i].sequence)) 57 58 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 74 60 } 75 61 } … … 84 70 c.style.display = ''; 85 71 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 }103 72 104 73 // hide the DropDrowContact, if necessary … … 131 100 document.getElementById('to_'+ID).focus(); 132 101 } 133 102 103 RichTextEditor.setEditable(ID); 134 104 return ID; 135 105 } … … 397 367 content.parentNode.removeChild(content); 398 368 resizeWindow(); 369 RichTextEditor.destroy( 'body_'+ID ); 399 370 return true; 400 371 }
Note: See TracChangeset
for help on using the changeset viewer.