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 主要是解决跳出 未知工具栏项目
如对本文有疑问,
点击进行留言回复!!
网友评论