CKEditor之配置文件config.js
2015-01-16 11:10
531 查看
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ){
// 界面语言,默认为 'en'
config.language = 'zh-cn';
// 编辑器样式,有三种:'kama'(默认)、'office2003'、'v2'
config.skin = 'kama';
// 背景颜色
config.uiColor = '#C4D8ED';
// 工具栏(基础'Basic'、全能'Full'、自定义)plugins/toolbar/plugin.js
config.toolbar = 'Basic';
config.toolbar_Basic = [
//['Source','-','Bold','Italic','RemoveFormat','Cut','Copy','Paste','PasteText','PasteFromWord'], ['Maximize']
['Source','-','Bold','Italic','RemoveFormat','Cut','Copy','Paste','PasteText','PasteFromWord'],
['Image','Table'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Format','FontSize'],['Maximize']
];
config.height = 300; //高度
config.toolbar = 'Full';
//这将配合:
config.toolbar_Full = [
['Source','-','Preview','Templates'],
['Cut','Copy','Paste','PasteText','PasteFromWord'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],['TextColor','BGColor'],
['-','Outdent','Indent','Blockquote','-','Subscript','Superscript','NumberedList','BulletedList',],
['Link','Unlink'],
'/',
['Bold','Italic','Underline','Strike','-',],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Styles','Format','Font','FontSize'],
['Image','Flash','Table','HorizontalRule','SpecialChar','PageBreak'], ['Maximize']
];
//config.filebrowserImageBrowseUrl = '/FileManage.php?action=Show&Return_Type=2&getajax=true';
//config.filebrowserFlashBrowseUrl = '/FileManage.php?action=Show&Return_Type=2&getajax=true';
config.filebrowserUploadUrl = './upload_imgfile.php';
config.enterMode = CKEDITOR.ENTER_BR;
};
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ){
// 界面语言,默认为 'en'
config.language = 'zh-cn';
// 编辑器样式,有三种:'kama'(默认)、'office2003'、'v2'
config.skin = 'kama';
// 背景颜色
config.uiColor = '#C4D8ED';
// 工具栏(基础'Basic'、全能'Full'、自定义)plugins/toolbar/plugin.js
config.toolbar = 'Basic';
config.toolbar_Basic = [
//['Source','-','Bold','Italic','RemoveFormat','Cut','Copy','Paste','PasteText','PasteFromWord'], ['Maximize']
['Source','-','Bold','Italic','RemoveFormat','Cut','Copy','Paste','PasteText','PasteFromWord'],
['Image','Table'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Format','FontSize'],['Maximize']
];
config.height = 300; //高度
config.toolbar = 'Full';
//这将配合:
config.toolbar_Full = [
['Source','-','Preview','Templates'],
['Cut','Copy','Paste','PasteText','PasteFromWord'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],['TextColor','BGColor'],
['-','Outdent','Indent','Blockquote','-','Subscript','Superscript','NumberedList','BulletedList',],
['Link','Unlink'],
'/',
['Bold','Italic','Underline','Strike','-',],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Styles','Format','Font','FontSize'],
['Image','Flash','Table','HorizontalRule','SpecialChar','PageBreak'], ['Maximize']
];
//config.filebrowserImageBrowseUrl = '/FileManage.php?action=Show&Return_Type=2&getajax=true';
//config.filebrowserFlashBrowseUrl = '/FileManage.php?action=Show&Return_Type=2&getajax=true';
config.filebrowserUploadUrl = './upload_imgfile.php';
config.enterMode = CKEDITOR.ENTER_BR;
};
相关文章推荐
- ckeditor用户自定义配置文件config.js
- ckeditor自己用的配置文件config.js
- ckeditor 配置文件Config.js的一些具体配置信息
- webpack配置文件:webpack.config.js
- FCKEditor:fckconfig.js配置文件说明
- CKEditor config.js 详细配置说明
- CKEDITOR的config.js文件
- ckeditor中 config.js等通过ckeditor.js引入文件手动修改方法
- CKEditor不能读取config.js配置的问题
- vue-cli脚手架config目录下index.js配置文件
- [转]CKEDITOR config.js配置
- 在js文件中,获取webconfig中的配置信息
- ckeditor中 config.js等通过ckeditor.js引入文件手动修改方法
- webpack教程之webpack.config.js配置文件
- [js高手之路]深入浅出webpack教程系列3-配置文件webpack.config.js详解(下)
- webpack.config.js文件的高级配置
- 在JS中获得webConfig的配置文件信息
- CKEditor config.js 详细配置说明
- ckeditor中 config.js等通过ckeditor.js引入文件手动修改方法
- vue-cli脚手架config目录下index.js配置文件详解