发现CKeditor没有设置行距的功能,想想这么重要的功能肯定有相应的插件,于是百度一下,倒是有不少的教程,所以记录一下,以备后用,
1.下载ckeditor的行距插件包 lineheight
2.解压到ckeditor/plugins目录下
3.修改ckeditor目录下的 config.js文件,在其中添加以下的代码
config.extraPlugins += (config.extraPlugins ? ',lineheight' : 'lineheight'); CKEDITOR.config.toolbar_Full = [ { name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] }, { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo'

本文档介绍了如何为CKeditor添加行距功能。通过下载并安装行距插件包lineheight,将其解压到ckeditor/plugins目录,然后修改config.js文件,添加相关配置,即可实现CKeditor的行距设置功能。
最低0.47元/天 解锁文章
3399

被折叠的 条评论
为什么被折叠?



