load users preferred (TinyMCE) font also for mail preview

This commit is contained in:
ralf 2022-05-23 15:44:42 +02:00
parent 7a55eef6c8
commit d9436628cd
2 changed files with 7 additions and 2 deletions

View File

@ -3356,6 +3356,11 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
$GLOBALS['egw_info']['flags']['nonavbar']=true;
// do NOT include any default CSS
Framework::includeCSS('mail', 'preview', true, true);
// include TinyMCE CSS prefs after preview CSS
Framework::includeCSS('/api/tinymce.php?'. // use the 3 prefs as cache-buster
base64_encode($GLOBALS['egw_info']['user']['preferences']['common']['rte_font'].':'.
$GLOBALS['egw_info']['user']['preferences']['common']['rte_font_size'].':'.
$GLOBALS['egw_info']['user']['preferences']['common']['rte_font_unit']));
// load preview.js to activate mailto links
Framework::includeJS('/mail/js/preview.js');
@ -5619,4 +5624,4 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
$response->data($res);
}
}
}
}

View File

@ -19,7 +19,7 @@ body,html {
height:100%;
width:100%;
padding:0px;
margin:0px;
margin:0 !important;
}
.td_display {
font-family: Verdana, Arial, Helvetica, sans-serif;