Changeset 4585 for branches/2.2/expressoMail1_2/js
- Timestamp:
- 06/03/11 12:00:31 (13 years ago)
- Location:
- branches/2.2/expressoMail1_2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/js/main.js
r4584 r4585 1679 1679 textArea.name = "body"; 1680 1680 body = document.getElementById("body_"+ID); 1681 textArea.value = ( ( mail_as_plain ) ? body.previousSibling.value: ( '<body>\r\n' + body.contentWindow.document.body.innerHTML + '\r\n</body>' ) );1681 textArea.value = ( ( mail_as_plain ) ? (is_ie ? body.contentWindow.document.body.innerHTML : body.previousSibling.value) : ( '<body>\r\n' + body.contentWindow.document.body.innerHTML + '\r\n</body>' ) ); 1682 1682 var input_folder = document.createElement("INPUT"); 1683 1683 input_folder.style.display='none'; -
branches/2.2/expressoMail1_2/js/rich_text_editor.js
r4379 r4585 163 163 164 164 if (source) { 165 var mail_as_plain = document.getElementById( 'textplain_rt_checkbox_' + this.id ); 165 166 if (is_ie){ 166 167 connector.loadScript('html2xhtml'); 167 168 html = frames[this.editor].document.body; 168 169 var xhtml = get_xhtml(html, 'en', 'iso-8859-1'); 170 xhtml = xhtml.replace( /<br\s*\/?>/mg, "\n" ).replace( /(<([^>]+)>)/ig, '' ).replace( /^[\n ]+|[\n ]+$/g, '' ); 171 if ( ! mobile_device && xhtml != '' && ! ( mail_as_plain.checked = confirm( get_lang( 'The text format will be lost' ) + '.' ) ) ) 172 return false; 169 173 frames[this.editor].document.body.innerText = xhtml; 170 174 document.getElementById("table_richtext_toolbar").style.visibility="hidden"; 171 175 } 172 176 else{ 173 var mail_as_plain = document.getElementById( 'textplain_rt_checkbox_' + this.id );174 175 177 html = document.createTextNode( editor.contentWindow.document.body.innerHTML ); 176 178 html = html.nodeValue.replace( /<br\s*\/?>/mg, "\n" ).replace( /(<([^>]+)>)/ig, '' ).replace( /^[\n ]+|[\n ]+$/g, '' );
Note: See TracChangeset
for help on using the changeset viewer.