PHPCMS中ckeditor编辑器添加“行距”选项
![](https://images2015.cnblogs.com/blog/990103/201608/990103-20160830170409340-327053964.png)
PHPCMS后台ckeditor编辑器没有行距功能,需要添加行距插件:
1,下载lineheight插件
下载链接:https://files.cnblogs.com/files/hugo07/ckeditor-lineheight.zip
2,将lineheight文件夹上传至/home/www/html/statics/js/ckeditor/plugins目录中
3,修改ckeditor目录下的config.js文件:
config.extraPlugins = 'capture,videoforpc,flashplayer';
修改为:
config.extraPlugins = 'capture,videoforpc,flashplayer,lineheight';
4,修改/home/www/html/phpcms/libs/classes目录下的form.class.php文件:
['Styles','Format','Font','FontSize'],
修改为:
['Styles','Format','Font','FontSize','lineheight'],
5,更新后台缓存,清除浏览器缓存
2,将lineheight文件夹上传至/home/www/html/statics/js/ckeditor/plugins目录中
3,修改ckeditor目录下的config.js文件:
config.extraPlugins = 'capture,videoforpc,flashplayer';
修改为:
config.extraPlugins = 'capture,videoforpc,flashplayer,lineheight';
4,修改/home/www/html/phpcms/libs/classes目录下的form.class.php文件:
['Styles','Format','Font','FontSize'],
修改为:
['Styles','Format','Font','FontSize','lineheight'],
5,更新后台缓存,清除浏览器缓存
![](https://images2015.cnblogs.com/blog/990103/201608/990103-20160830172358824-1723479622.png)