如何更改Ckeditor的默认字体? [英] How Can i change default font of Ckeditor?

查看:140
本文介绍了如何更改Ckeditor的默认字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改Ckeditor的默认字体!

I like to change default font of Ckeditor !

我做不到,也看不到文档"中的任何内容.我只能更改默认标签!

I cant do it and dont see anything about it in Docs . I can only change the default lable of it !

谢谢

推荐答案

每个文档这些似乎都是在 plugins/font/plugin.js中定义的.

{Object} CKEDITOR.config.font_style用于在文本中应用字体的样式定义.定义于:plugins/font/plugin.js.

{Object} CKEDITOR.config.font_style The style definition to be used to apply the font in the text. Defined in: plugins/font/plugin.js.

config.font_style =
    {
        element		: 'span',
        styles		: { 'font-family' : '#(family)' },
        overrides	: [ { element : 'font', attributes : { 'face' : null } } ]
    };

{String} CKEDITOR.config.fontSize_defaultLabel自:3.0要在字体大小"组合中显示的文本,没有与当前光标位置或文本选择匹配的可用值.定义于:plugins/font/plugin.js.

{String} CKEDITOR.config.fontSize_defaultLabel Since: 3.0 The text to be displayed in the Font Size combo is none of the available values matches the current cursor position or text selection. Defined in: plugins/font/plugin.js.

config.fontSize_defaultLabel = '12px';

{String} CKEDITOR.config.fontSize_sizes自:3.0要在工具栏的字体大小"组合中显示的字体大小列表.条目之间用分号(;)分隔.可以使用任何类型的"CSS like"大小,例如"12px","2.3em","130%",较大"或"x小".可以通过在条目之前添加名称和斜杠字符来定义显示名称.例如,较大字体/14px"将在列表中显示为较大字体",但将输出为"14px".定义于:plugins/font/plugin.js.

{String} CKEDITOR.config.fontSize_sizes Since: 3.0 The list of fonts size to be displayed in the Font Size combo in the toolbar. Entries are separated by semi-colons (;). Any kind of "CSS like" size can be used, like "12px", "2.3em", "130%", "larger" or "x-small". A display name may be optionally defined by prefixing the entries with the name and the slash character. For example, "Bigger Font/14px" will be displayed as "Bigger Font" in the list, but will be outputted as "14px". Defined in: plugins/font/plugin.js.

config.fontSize_sizes = '16/16px;24/24px;48/48px;';
config.fontSize_sizes = '12px;2.3em;130%;larger;x-small';
config.fontSize_sizes = '12 Pixels/12px;Big/2.3em;30 Percent More/130%;Bigger/larger;Very Small/x-small';

我对Ckeditor不太了解,但我希望这会有所帮助!

I am not very savvy with Ckeditor, but I hope this helps!

这篇关于如何更改Ckeditor的默认字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆