Changeset 5745
- Timestamp:
- 03/16/12 17:33:05 (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r5743 r5745 2759 2759 $body = mb_ereg_replace('<!--\[', '<!-- [', $params['body']); 2760 2760 $body = str_replace("%nbsp;"," ",$body); 2761 $body = preg_replace("/\n/"," ",$body);2762 $body = preg_replace("/\r/","" ,$body);2761 //$body = preg_replace("/\n/"," ",$body); 2762 //$body = preg_replace("/\r/","" ,$body); 2763 2763 $body = html_entity_decode ( $body, ENT_QUOTES , 'ISO-8859-1' ); 2764 2764 } … … 2843 2843 2844 2844 $mailService->setSubject($subject); 2845 $isHTML = ( (array_key_exists('type', $params) && in_array(strtolower($params['type']), array('html', 'plain')) ) ? 2846 strtolower($params['type']) != 'plain' : true ); 2845 $isHTML = ( isset($params['type']) && $params['type'] == 'html' )? true : false; 2847 2846 2848 2847 -
trunk/expressoMail1_2/js/main.js
r5729 r5745 1814 1814 if (txtarea != null){ 1815 1815 if (data.body != undefined) 1816 txtarea.value = data.body ;1816 txtarea.value = data.body.replace( new RegExp('<pre>((.\n*)*)</pre>'),'$1'); 1817 1817 if (preferences.use_signature == "1") 1818 1818 txtarea.value += '\n' + signature; … … 2209 2209 input_folder.style.display='none'; 2210 2210 input_folder.name = "folder"; 2211 input_folder.value = folder; 2211 input_folder.value = folder; 2212 2213 var input_type = document.createElement("INPUT"); 2214 input_type.style.display='none'; 2215 input_type.name = "type"; 2216 input_type.value = RichTextEditor.plain[ID] ? 'plain' : 'html'; 2212 2217 2213 2218 var uids = document.createElement("INPUT"); … … 2249 2254 form.appendChild(textArea); 2250 2255 form.appendChild(input_folder); 2256 form.appendChild(input_type); 2251 2257 2252 2258 // Implementação do In_Reply_To e References … … 3582 3588 form.folder = folder_id; 3583 3589 form.body = RichTextEditor.getData("body_"+border_id); 3584 form.attachments = listAttachment(border_id); 3590 form.type = RichTextEditor.plain[border_id] ? 'plain' : 'html'; 3591 form.attachments = listAttachment(border_id) ; 3585 3592 form.uidsSave = uidsSave[border_id].toString(); 3586 3593 return( form ); -
trunk/expressoMail1_2/js/rich_text_editor.js
r5604 r5745 226 226 227 227 if(this.plain[id] === true) 228 { 229 if($('#'+id) !== undefined){ 228 { 229 data = data.replace( new RegExp('<pre>((.\n*)*)</pre>'),'$1'); 230 231 if($('#'+id) !== undefined){ 230 232 $('#'+id).val(data); 231 233 if (reply === undefined) -
trunk/library/CssToInlineStyles/css_to_inline_styles.php
r5476 r5745 184 184 { 185 185 // remove classes 186 $html = preg_replace('/(\s)+class="( .*)"(\s)+/U', ' ', $html);187 186 $html = preg_replace('/(\s)+class="([^"])"/U', ' ', $html); 187 188 188 // remove IDs 189 $html = preg_replace('/(\s)+id="( .*)"(\s)+/U', ' ', $html);189 $html = preg_replace('/(\s)+id="([^"])"/U', ' ', $html); 190 190 191 191 // return -
trunk/prototype/services/ImapServiceAdapter.php
r5711 r5745 398 398 $body = $data['body']; 399 399 $body = str_replace("%nbsp;"," ",$body); 400 $body = preg_replace("/\n/"," ",$body);401 $body = preg_replace("/\r/","" ,$body);400 //$body = preg_replace("/\n/"," ",$body); 401 //$body = preg_replace("/\r/","" ,$body); 402 402 $body = html_entity_decode ( $body, ENT_QUOTES , 'ISO-8859-1' ); 403 403 … … 420 420 $mailService->addHeaderField('Disposition-Notification-To', Config::me('mail')); 421 421 422 $isHTML = ( ( array_key_exists( 'type', $data ) && in_array( strtolower( $data[ 'type' ] ), array( 'html', 'plain' ) ) ) ? strtolower( $data[ 'type' ] ) != 'plain' : true );423 422 $isHTML = ( isset($data['type']) && $data['type'] == 'html' )? true : false; 423 424 424 if (!$body) $body = ' '; 425 425
Note: See TracChangeset
for help on using the changeset viewer.