如何在 CKEditor 中编辑字体选项?
How to edit the font options in CKEditor?
我正在使用 CKEditor 4.6 the official font size and family plugin. 是否可以更改字体系列选项?
我正在使用来自 Google Fonts 的字体,因此我有所需的额外字体文件。
使用 font_names 配置选项。
The list of fonts names to be displayed in the Font combo in the
toolbar. Entries are separated by semi-colons (';'), while it's
possible to have more than one font for each entry, in the HTML way
(separated by comma).
A display name may be optionally defined by prefixing the entries with
the name and the slash character. For example, 'Arial/Arial,
Helvetica, sans-serif' will be displayed as 'Arial' in the list, but
will be outputted as 'Arial, Helvetica, sans-serif'.
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';
我正在使用 CKEditor 4.6 the official font size and family plugin. 是否可以更改字体系列选项?
我正在使用来自 Google Fonts 的字体,因此我有所需的额外字体文件。
使用 font_names 配置选项。
The list of fonts names to be displayed in the Font combo in the toolbar. Entries are separated by semi-colons (';'), while it's possible to have more than one font for each entry, in the HTML way (separated by comma).
A display name may be optionally defined by prefixing the entries with the name and the slash character. For example, 'Arial/Arial, Helvetica, sans-serif' will be displayed as 'Arial' in the list, but will be outputted as 'Arial, Helvetica, sans-serif'.
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';