为ckeditor添加行距的功能
来源:互联网 发布:上门修手机 知乎 编辑:程序博客网 时间:2024/06/05 00:11
发现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' ] }, { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] }, { name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] }, '/', { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] }, { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] }, { name: 'links', items : [ 'Link','Unlink','Anchor' ] }, { name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] }, '/', { name: 'styles', items : [ 'Styles','Format','Font','FontSize','lineheight' ] }, { name: 'colors', items : [ 'TextColor','BGColor' ] }, { name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] } ];
4.现在就ok了,行距功能就有了。
- 为ckeditor添加行距的功能
- 为ckeditor添加行距的功能
- 为ckeditor添加行距的功能
- 为ckeditor编辑器添加行距功能
- ckeditor增加行距功能和中文字体
- 为FCKeditor2.6添加行距功能(最新修改)
- PHPCMSV9的CKEDITOR编辑器增加行距
- ckeditor的使用(行距,上传图片,字体)
- PHPCMSV9的CKEDITOR编辑器增加行距
- ckeditor的使用(行距,上传图片,字体)
- ckeditor的使用(行距,上传图片,字体)
- CKEDITOR各种操作 获取CKEDITOR的内容|添加功能
- CKEditor二次开发-替CKEditor增加添加水印的功能
- CKEditor二次开发-为CKEditor增加下传图片的功能
- ckeditor 行距插件
- php ckeditor 添加上传功能
- CKEditor+CKFinder for java (上传文件、上传视频、添加行距编辑等等)
- Java 设置添加ckeditor图片上传功能
- Eclipse中的文本编码设置
- 【对转载进行了部分解释】CRoutingZone的实现机制 以及 process()中一些函数的意义
- C语言中通过分隔符来截取字符串
- java 设计模式学习笔记十二 command命令设计模式
- 2BizBox平台与插件开发概述
- 为ckeditor添加行距的功能
- 改oracle的name和dbid
- 20个有用的代码片段。。。——>摘自酷壳
- mysql数据库编码的设置
- code 收集
- 黑马程序员_枚举的一些简单用法
- 修改oracle实例名
- eclipse下建立 stm32开发方式
- No changes were made to the system