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

时间:2022-04-20 23:05:23 

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 主要是解决跳出 未知工具栏项目

标签:fckeditor,添加行距
0
投稿

猜你喜欢

  • 通过案例解析python鸭子类型相关原理

    2022-05-03 12:38:57
  • pygame实现俄罗斯方块游戏(基础篇3)

    2022-10-10 10:45:54
  • python语言使用技巧分享

    2022-10-24 09:29:38
  • Pytorch实现各种2d卷积示例

    2023-06-20 16:17:29
  • CSS背景属性5个应用实例

    2009-09-13 20:54:00
  • Python实现动态添加类的属性或成员函数的解决方法

    2021-05-13 17:13:41
  • 微信跳一跳python辅助脚本(总结)

    2023-01-04 00:56:23
  • 在Python中使用成员运算符的示例

    2023-12-12 01:36:20
  • 将多宿主计算机配置为SQL Server访问

    2011-01-04 16:17:00
  • asp获取软件下载的真实地址!再谈获取Response.redirect重定向的URL!

    2010-03-10 22:03:00
  • Python NumPy教程之数据类型对象详解

    2022-03-29 09:05:19
  • python实现图片九宫格分割的示例

    2021-02-08 22:19:38
  • Python multiprocess pool模块报错pickling error问题解决方法分析

    2021-02-21 04:44:50
  • asp中常用的文件处理函数

    2009-01-08 18:09:00
  • 浅谈python在提示符下使用open打开文件失败的原因及解决方法

    2023-12-07 18:31:33
  • Python自动化办公之PPT段落的使用

    2023-07-10 07:09:24
  • django解决跨域请求的问题

    2021-09-01 05:43:23
  • python Django模板的使用方法

    2021-06-09 15:29:14
  • js 轮播效果实例分享

    2023-07-16 00:42:43
  • pandas 取出表中一列数据所有的值并转换为array类型的方法

    2023-10-04 15:12:52
  • asp之家 网络编程 m.aspxhome.com