你好朋友我需要在FCKEditor 4.2中更改字体系列和大小但是我非常搜索,我找不到这个问题的解决方案 4.2版 ckeditor。 在我找到解决方案与替换css类结束时。 把css课程放在这里有类似问题的朋友,我希望帮助他们。
感谢。
/*cke dialog label*/
.cke_dialog_ui_labeled_label {font-family: Tahoma; font-size:11px;}
/*cke dialog title*/
.cke_dialog_title {font-family: Tahoma; font-size:12px;}
/*cke dialog tab*/
.cke_dialog_tab {font-family: Tahoma; font-size:11px;}
/*cke input:text*/
.cke_dialog_ui_labeled_content {font-family: Tahoma; margin-top:5px; margin-bottom:5px;}
/*cke dialog input text*/
.cke_dialog_ui_input_text { font-family: Tahoma; font-size:12px;}
.cke_dialog_ui_button {font-family: Tahoma; font-size:12px;}
/*cke dialog select*/
.cke_dialog_ui_input_select {font-family: Tahoma; font-size:11px; }
.cke_dialog_ui_input_select option {font-family: Tahoma; font-size:11px; margin-top:2px; }
/*cke ui button text*/
.cke_combo_text { font-family: Tahoma; font-size:11px;}
答案 0 :(得分:0)
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraPlugins
在config.js中,例如更改为类,添加以下内容: 显示名称/类
config.font_names =
'Arial/arial;' +
'Comic Sans MS/comic_sans;' +
'Courier New/courier_new;' +
'Georgia/georgia;' +
'Lucida Sans Unicode/lucida;' +
'Tahoma/tahoma;' +
'Times New Roman/times_new_roman;' +
'Trebuchet MS/trebuchet;' +
'Verdana/verdana';
config.font_style = {
element: 'span',
attributes: {'class': '#(family)'}
};
OR
config.font_names = 'Arial/Arial, Helvetica, sans-serif;' +
'Comic Sans MS/Comic Sans MS, cursive;' +
'Courier New/Courier New, Courier, monospace;' +
'Georgia/Georgia, serif;' +
'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' +
'Tahoma/Tahoma, Geneva, sans-serif;' +
'Times New Roman/Times New Roman, Times, serif;' +
'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' +
'Verdana/Verdana, Geneva, sans-serif';
更改内联样式。