mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 03:13:40 +01:00
no longer load TinyMCE styles for preview and change TinyMCE margin to 10px we have in preview
This commit is contained in:
parent
45ccceb1c7
commit
597a983264
@ -278,8 +278,8 @@ export class et2_htmlarea extends et2_editableWidget implements et2_IResizeable
|
||||
"Wingdings=wingdings,zapf dingbats",
|
||||
fontsize_formats: '8pt 10pt 12pt 14pt 18pt 24pt 36pt',
|
||||
content_css: egw.webserverUrl+'/api/tinymce.php?'+ // use the 3 prefs as cache-buster
|
||||
btoa(egw.preference('rte_font', 'common')+':'+
|
||||
egw.preference('rte_font_size', 'common')+':'+
|
||||
btoa(egw.preference('rte_font', 'common')+'::'+
|
||||
egw.preference('rte_font_size', 'common')+'::'+
|
||||
egw.preference('rte_font_unit', 'common')),
|
||||
};
|
||||
const rte_formatblock = <string>(egw.preference('rte_formatblock', 'common') || 'p');
|
||||
|
@ -257,13 +257,13 @@ code {
|
||||
}
|
||||
.mce-content-body:not([dir=rtl]) blockquote {
|
||||
border-left: 2px solid #ccc;
|
||||
margin-left: 1.5rem;
|
||||
padding-left: 1rem;
|
||||
margin-left: 0;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.mce-content-body[dir=rtl] blockquote {
|
||||
border-right: 2px solid #ccc;
|
||||
margin-right: 1.5rem;
|
||||
padding-right: 1rem;
|
||||
margin-right: 0;
|
||||
padding-right: 10px;
|
||||
}
|
||||
fieldset {
|
||||
border: 2px solid silver;
|
||||
|
@ -3356,11 +3356,6 @@ $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');
|
||||
|
Loading…
Reference in New Issue
Block a user