当前位置: 移动技术网 > IT编程>脚本编程>编辑器 > fckeditor 修改记录添加行距功能插件

fckeditor 修改记录添加行距功能插件

2017年12月08日  | 移动技术网IT编程  | 我要评论
fckconfig.js 中修改
添加
复制代码 代码如下:

fckconfig.lineheights = '100%;150%;200%;250%;300%' ;
'size' :
{
element : 'span',
styles : { 'font-size' : '#("size","fontsize")' },
overrides : [ { element : 'font', attributes : { 'size' : null } } ]
},

这个下面添加
复制代码 代码如下:

'lineheight' :
{
element : 'span',
styles : { 'line-height' : '#("font")' },
overrides : [ { element : 'font', attributes : { 'size' : null } } ]
},

fckconfig.toolbarsets 里添加
'lineheight'

开启插件
fckconfig.plugins.add( 'lineheight','zh-cn' ) ;
注意'lineheight' 这个字母的大小写。
在fckeditor\editor\plugins文件夹下上传lineheight目录
在fckeditor\editor\js 上传fckeditorcode_gecko.js和fckeditorcode_ie.js
这两个js 主要是解决跳出 未知工具栏项目

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网