Hallo,
besteht die Möglichkeit den TinyEditor von RoundCube (Version 2 stable) mit neuen Schriftarten zu bestücken? Ich vermisse die Schriftart "MS Sans Serif" beim Erstellen von HTML Mails, obwohl diese laut Code Style (http://www.codestyle.org/) weltweit zur verbreitesten Windows Schriftart zählt.
Danke Maurice
			
			
			
				Ich bin kein TinyMCE Spezialist. Aber versuche mal in ./program/js/editor.js Dein Glück.
Nach meinem Verständnis müsstest Du eine Definiton für das Font control einfügen.
Die "default" Font Control Definiton lautet:
theme_advanced_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
Diese müsstest Du nach Deinen Bedürfnissen anpassen und in den folgenden Code in editor.js einarbeiten:
 
16 // Initialize HTML editor 
17 function rcmail_editor_init(skin_path, editor_lang, spellcheck, mode) 
18 { 
19   if (mode == 'identity') 
20     tinyMCE.init({ mode : 'textareas', 
21       editor_selector : 'mce_editor', 
22       apply_source_formatting : true, 
23       theme : 'advanced', 
24       language : editor_lang, 
25       content_css : skin_path + '/editor_content.css', 
26       theme_advanced_toolbar_location : 'top', 
27       theme_advanced_toolbar_align : 'left', 
28       theme_advanced_buttons1 : 'bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,separator,outdent,indent,charmap,hr,link,unlink,code,forecolor', 
29       theme_advanced_buttons2 : ',fontselect,fontsizeselect', 
30       theme_advanced_buttons3 : '', 
31       relative_urls : false, 
32       remove_script_host : false, 
33       gecko_spellcheck : true 
34     }); 
35   else // mail compose 
36     tinyMCE.init({  
37       mode : 'textareas', 
38       editor_selector : 'mce_editor', 
39       accessibility_focus : false, 
40       apply_source_formatting : true, 
41       theme : 'advanced', 
42       language : editor_lang, 
43       plugins : 'emotions,media,nonbreaking,table,searchreplace,visualchars,directionality' + (spellcheck ? ',spellchecker' : ''), 
44       theme_advanced_buttons1 : 'bold,italic,underline,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,link,unlink,emotions,charmap,code,forecolor,backcolor,fontselect,fontsizeselect, separator' + (spellcheck ? ',spellchecker' : '') + ',undo,redo,image,media,ltr,rtl', 
45       theme_advanced_buttons2 : '', 
46       theme_advanced_buttons3 : '', 
47       theme_advanced_toolbar_location : 'top', 
48       theme_advanced_toolbar_align : 'left', 
49       extended_valid_elements : 'font[face|size|color|style],span[id|class|align|style]', 
50       content_css : skin_path + '/editor_content.css', 
51       external_image_list_url : 'program/js/editor_images.js', 
52       spellchecker_languages : (rcmail.env.spellcheck_langs ? rcmail.env.spellcheck_langs : 'Dansk=da,Deutsch=de,+English=en,Espanol=es,Francais=fr,Italiano=it,Nederlands=nl,Polski=pl,Portugues=pt,Suomi=fi,Svenska=sv'), 
53       gecko_spellcheck : true, 
54       relative_urls : false, 
55       remove_script_host : false , 
56       rc_client: rcube_webmail_client, 
57       oninit : 'rcmail_editor_callback' 
58     }); 
59 } 
Vielleicht hilft Die dabei dieses Forum weiter: TinyMCE Custom fonts - Subdreamer CMS (http://www.subdreamer.com/forum/showthread.php?t=9693)