/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ){
	// Define changes to default configuration here. For example:
	config.language = 'zh-cn';
	config.defaultLanguage = 'zh-cn';//界面的语言配置 设置为'zh-cn'即可
	//config.contentsCss = './contents.css';//所需要添加的CSS文件 在此添加 可使用相对路径和网站的绝对
	config.uiColor = '#DFEFFF';
	config.dialog_backgroundCoverColor='#DFEFFF';//背景的透明颜色设置
	config.dialog_backgroundCoverOpacity = 0.5//背景的不透明度 数值应该在：0.0～1.0 之间
	config.fontSize_defaultLabel = '12px';//字体默认大小
	config.width='98%';//设置编辑器宽度 
	config.height=310;//设置编辑器高度
	config.baseFloatZIndex = 100000;// 编辑器的z-index值
	config.scayt_autoStartup = false;//是否启用拼写检查
	config.disableNativeSpellChecker = true;//是否拒绝本地拼写检查和提示 默认为拒绝 目前仅firefox和safari支持 plugins/wysiwygarea/plugin
	config.toolbarCanCollapse = true;//工具栏是否可以被收缩，有true或false两个值
	config.toolbarLocation = 'top';//工具栏的位置，可选：top或者bottom
	config.toolbarStartupExpanded = true;//工具栏默认是否展开，有true或false两个值
	config.resize_enabled = false;//是否取消 "拖拽以改变尺寸"功能，plugins/resize/plugin.js
	config.autoUpdateElement = true;// 当提交包含有此编辑器的表单时，是否自动更新元素内的数据
	config.pasteFromWordIgnoreFontFace = false; //当从word里复制文字进来时，是否进行文字的格式化去除,有true或false两个值
	config.pasteFromWordRemoveStyle = false;//从word中粘贴内容时是否移除格式,有true或false两个值
	config.forcePasteAsPlainText = false; //是否强制复制来的内容去除格式,有true或false两个值
	config.forceSimpleAmpersand = false;//是否强制用"&"来代替"&"
	config.autoUpdateElement = true;// 当提交包含有此编辑器的表单时，是否自动更新元素内的数据
	config.resize_enabled = false;//是否取消 "拖拽以改变尺寸"功能，plugins/resize/plugin.js
	config.font_names='微软雅黑/Microsoft Yahei;黑体/黑体;楷体/楷体_GB2312;仿宋/仿宋_GB2312;隶书/隶书;幼圆/幼圆;'+config.font_names;
	config.toolbar = 'mainSkin';//使用的工具栏名称
	config.toolbar_mainSkin = [
	['Source'],
	['TextColor','BGColor','Bold','Italic','Underline','Strike','Subscript','Superscript'],
	['PasteText','PasteFromWord','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	['NumberedList','BulletedList'],
	['Find','Replace','-','SelectAll','RemoveFormat','Maximize','ShowBlocks'],
	'/',
	['Image','Flash','Table','HorizontalRule','SpecialChar'],
	['Link','Unlink','Anchor','-','Styles','Format','Font','FontSize','Undo','Redo']
	];
	config.toolbar_miniSkin = [
	['TextColor','BGColor','Bold','Italic','Underline','Strike','Subscript','Superscript'],
	['PasteText','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	['Find','Replace','-','SelectAll','RemoveFormat','Maximize']
	];
	config.filebrowserImageUploadUrl = '../apps/CKEditor_upload.php?type=Images';//上传图片的文件路径
	config.filebrowserFlashUploadUrl = '../apps/CKEditor_upload.php?type=Flash';//上传flash的文件路径
	//config.filebrowserLinkUploadUrl = '../apps/CKEditor_upload.php?type=Files';//上传链接处 附件文件的文件路径

/*以下为完整版的工具栏代码↓
	config.toolbar_Full =
	[
	['Source','-','Save','NewPage','Preview','-','Templates'],
	['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
	['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
	'/',
	['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
	['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	['Link','Unlink','Anchor'],
	['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
	'/',
	['Styles','Format','Font','FontSize'],
	['TextColor','BGColor']
	];
*/
};