CKEditor与CKFinder的基本配置

CKEDITOR.editorConfig = function (config) 
{ config.language
= 'zh-CN'; //语言 config.skin = 'v2'; //样式 config.enterMode = CKEDITOR.ENTER_BR; //回车时产生的标示 config.width = '660px'; //默认宽度 config.height = '410px'; //默认高度 config.resize_enabled = false; //ckedior窗口大小调整功能是否开启 config.toolbarCanCollapse = false; //工具栏是否可以被收缩 config.toolbar = 'Basic' //名字为“Basic”的toolbar(工具栏)的具体设定。只保留以下功能: config.toolbar_Basic = [ { name: 'document', items: ['Source'] }, //源代码栏:查看源代码 {name: 'styles', items: ['Format', 'Font', 'FontSize'] }, //样式栏:字体、大小 {name: 'paragraph', items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] }, //对齐栏:左对齐、中心对齐、右对齐、两端对齐 {name: 'colors', items: ['TextColor', 'BGColor'] }, //颜色栏:文本颜色、背景颜色 {name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] }, //基本样式栏:加粗、倾斜、下划线、删除线、下标、上标、移除样式 {name: 'insert', items: ['Image', 'Flash', 'Table', 'HorizontalRule', 'PageBreak'] }, //插入栏:图像、flash、表格、水平线,分页符 {name: 'links', items: ['Link', 'Unlink']} //超链接栏:增加超链接、取消超链接 ]; config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html'; //上传文件时浏览服务文件夹 config.filebrowserImageBrowseUrl = '/ckfinder/ckfinder.html?Type=Images'; //上传图片时浏览服务文件夹 config.filebrowserFlashBrowseUrl = '/ckfinder/ckfinder.html?Type=Flash'; //上传Flash时浏览服务文件夹 config.filebrowserUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files'; //上传文件按钮(标签) config.filebrowserImageUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images'; //上传图片按钮(标签) config.filebrowserFlashUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'; //上传Flash按钮(标签) };

你可能感兴趣的:(ckeditor)