CKEditor配置config.js
来源:互联网 发布:网络监控机怎么安装 编辑:程序博客网 时间:2024/05/19 06:49
config.js的配置:
CKEDITOR.editorConfig = function( config ) {
config.toolbar = 'Full';
config.height = 380;
config.toolbar_Full = [
['Bold','Italic','Underline'],
['NumberedList','BulletedList'],
['Link','Unlink'],
['Image'],
['Font','FontSize'],
['TextColor','BGColor'],
['JustifyLeft','JustifyCenter','JustifyRight'],
['Source'],
['Replace'],
['Maximize']
];
config.resize_enabled = false; //禁止拖拽改变尺寸
config.removePlugins = 'elementspath'; //删除底边栏
config.image_previewText=' '; //清空图片上传预览的内容
config.image_prefillDimensions = false; //禁止图片上传完毕后自动填充图片长和宽
config.filebrowserUploadUrl ="**********"; //图片上传接口
config.extraPlugins = 'wordcount,notification,notificationaggregator'; //其他插件:字数统计、提示信息
config.wordcount = {
showParagraphs: false, // 是否统计段落数
showWordCount: false, // 是否统计词数
showCharCount: true, // 是否统计字符数
countSpacesAsChars: false, // 是否统计空间字符
countHTML: false, // 是否统计包括HTML字符的字符数
maxWordCount: -1, // 最大允许词数,-1表示无上限
maxCharCount: 500, //最大允许字符数,-1表示无上限
filter: new CKEDITOR.htmlParser.filter({ //添加筛选器添加或删除元素之前计数(CKEDITOR.htmlParser.filter),默认值:null (no filter)
elements: {
div: function( element ) {
if(element.attributes.class == 'mediaembed') {
return false;
}
}
}
})
};
//添加中文字体config.font_names="宋体/SimSun;新宋体/NSimSun;仿宋_GB2312/FangSong_GB2312;楷体_GB2312/KaiTi_GB2312;黑体/SimHei;微软雅黑/Microsoft YaHei;幼圆/YouYuan;华文彩云/STCaiyun;华文行楷/STXingkai;方正舒体/FZShuTi;方正姚体/FZYaoti;"+ config.font_names;
};
关注更多文章
- CKEDITOR config.js配置
- CKEDITOR config.js配置
- CKEditor配置config.js
- CKEditor config.js文件配置
- CKEditor config.js 详细配置说明
- CKEditor config.js 详细配置说明
- ckeditor 配置文件Config.js的一些具体配置信息
- CKEditor不能读取config.js配置的问题
- ckeditor config.js 的自定义
- CKEDITOR的config.js文件
- CKEditor之配置文件config.js
- 如何配置CKEditor的config
- ckeditor用户自定义配置文件config.js
- gwt + ckeditor config.js定制化问题
- CKEditor之config.js自定义编辑
- ckeditor的config配置和ckfinder的配置
- ckeditor中 config.js等通过ckeditor.js引入文件手动修改方法
- ckeditor中 config.js等通过ckeditor.js引入文件手动修改方法
- 微信小程序-模板消息全面解析加实例
- sklearn中Logistics Regression的coef_和intercept_的具体意义
- 漫画:什么是volatile关键字?(整合版)
- 漫画:什么是佛系程序员?
- Ubuntu16.04安装Sublime Text3
- CKEditor配置config.js
- 修改intellij IDEA 项目编码
- 电商实战接口Api
- ubuntu pcm编辑软件
- Java 中字段和变量的的区别(Fields vs Variables in Java)
- Hibernate与 MyBatis的比较
- Android Studio如何查看branch列表及切换branch
- 浅谈bootstrap响应式与针对不同应用场景开发不同css样式区别
- 两张图总结 Neutron 架构(10)