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

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

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

  2021-03-18 我要评论
想了解fckeditor 修改记录添加行距功能插件的相关内容吗,在本文为您仔细讲解fckeditor 添加行距的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:fckeditor,添加行距,下面大家一起来学习吧。
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 主要是解决跳出 未知工具栏项目

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们