Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ckeditor CK编辑器默认字体系列和字体大小_Ckeditor_Fckeditor - Fatal编程技术网

Ckeditor CK编辑器默认字体系列和字体大小

Ckeditor CK编辑器默认字体系列和字体大小,ckeditor,fckeditor,Ckeditor,Fckeditor,如何更改CK编辑器的默认字体系列和字体大小 默认情况下,我需要设置字体系列和字体大小 我试过这个 config.font_defaultLabel = 'Georgia'; config.fontSize_defaultLabel = '20'; 通过此操作,我可以仅更改下拉值,但样式不适用于CK Editor可编辑区域。您可以自定义编辑器的外观,以适应您的需要。有关您的更多信息,请参见: 另一个选项是使用类型编辑器。使用此插件的编辑器不会创建iframe,而是创建常规div。这将导致,编

如何更改
CK编辑器
的默认字体系列和字体大小

  • 默认情况下,我需要设置字体系列和字体大小
我试过这个

config.font_defaultLabel = 'Georgia';
config.fontSize_defaultLabel = '20';

通过此操作,我可以仅更改下拉值,但样式不适用于
CK Editor
可编辑区域。

您可以自定义编辑器的外观,以适应您的需要。有关您的更多信息,请参见:

另一个选项是使用类型编辑器。使用此插件的编辑器不会创建iframe,而是创建常规div。这将导致,编辑器的内容将继承来自主页的css规则