0
我正在使用CKEditor 4.6和the official font size and family plugin.是否可以更改字体族选项?如何编辑CKEditor中的字体选项?
我使用Google字体的字体,所以我需要额外的字体文件。
我正在使用CKEditor 4.6和the official font size and family plugin.是否可以更改字体族选项?如何编辑CKEditor中的字体选项?
我使用Google字体的字体,所以我需要额外的字体文件。
使用font_names配置选项。
要在 工具栏的字体组合中显示的字体名称列表。条目以分号(';')分隔,而它的 可能具有多个字体,每个条目可能使用HTML方式 (用逗号分隔)。
通过在条目前加上 的名称和斜线字符,可以选择定义显示名称。例如,“Arial字体/ Arial字体, 黑体,无衬线”将被显示为列表中的“Arial字体”,但 将被输出为“Arial字体,黑体,无衬线”。
config.font_names =
'Arial/Arial, Helvetica, sans-serif;' +
'Times New Roman/Times New Roman, Times, serif;' +
'Verdana';
config.font_names = 'Arial;Times New Roman;Verdana';