no longer load TinyMCE styles for preview and change TinyMCE margin to 10px we have in preview

This commit is contained in:
ralf
2022-06-09 09:48:52 +02:00
parent 45ccceb1c7
commit 597a983264
3 changed files with 6 additions and 11 deletions

View File

@ -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');