Changeset 6505 for branches/2.4/expressoMail1_2
- Timestamp:
- 06/14/12 18:16:02 (12 years ago)
- Location:
- branches/2.4/expressoMail1_2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/expressoMail1_2/inc/class.imap_functions.inc.php
r6450 r6505 3035 3035 3036 3036 if ($isHTML) 3037 { 3038 $this->rfc2397ToEmbeddedAttachment($mailService , $body); 3039 3040 require_once(dirname(__FILE__).'/../../library/CssToInlineStyles/css_to_inline_styles.php'); 3041 $defaultStyle = '.expressoDefaultFont{'; 3042 3043 if(isset($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_family_editor']) && $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_family_editor']) 3044 $defaultStyle .= ' font-family:'.$_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_family_editor'] .';'; 3045 3046 if(isset($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_size_editor']) && $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_size_editor']) 3047 $defaultStyle .= ' font-size:'.$_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_size_editor'].';'; 3048 3049 $defaultStyle .= '}'; 3050 3051 $cssToInlineStyles = new CSSToInlineStyles('<span class="expressoDefaultFont">'.$body.'</span>'); 3052 $cssToInlineStyles->setUseInlineStylesBlock(true); 3053 $cssToInlineStyles->setCSS($defaultStyle); 3054 $cssToInlineStyles->setCleanup(TRUE); 3055 $body = $cssToInlineStyles->convert(); //Converte as tag style em inline styles 3056 unset($cssToInlineStyles); 3057 3037 3058 $mailService->setBodyHtml($body); 3059 } 3038 3060 else 3039 3061 $mailService->setBodyText($body); -
branches/2.4/expressoMail1_2/js/rich_text_editor.js
r5973 r6505 200 200 201 201 $(".cke_editor").css("white-space", "normal"); 202 RichTextEditor.editorReady = true; 203 } 202 203 if(typeof(preferences.font_size_editor) !== 'undefined') 204 $(editor.document.$.body).css("font-size",preferences.font_size_editor); 205 if(typeof(preferences.font_family_editor) !== 'undefined') 206 $(editor.document.$.body).css("font-family",preferences.font_family_editor); 207 208 RichTextEditor.editorReady = true; 209 } 204 210 } 205 211
Note: See TracChangeset
for help on using the changeset viewer.