/**
 * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	config.toolbarGroups = [
		{ name: 'document',	   groups: [ 'mode', 'document', 'doctools' ] },
		{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
		{ name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
		{ name: 'paragraph',   groups: [ 'list','align'/*,'blocks','indent', 'bidi' */] },
		{ name: 'editing',     groups: [ /*'find',*/ 'selection', 'spellchecker' ] },
		{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
		{ name: 'links' }, 
		{ name: 'others' }
 		//,{ name: 'about' }, '/'
	];
	// Toolbar configuration generated automatically by the editor based on config.toolbarGroups.
	config.toolbar = [
		{ name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'Source' ] },
		{ name: 'clipboard', groups: [ 'clipboard', 'undo' ], items: [ 'Cut', 'Copy', 'Paste', 'PasteText'/*, 'PasteFromWord'*/, '-', 'Undo', 'Redo' ] },
		{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ], items: [ 'Scayt' ] }, 
		{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Strike', '-', 'RemoveFormat' ] },
		{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote' ] },
		{ name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
		//{ name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar' ] }, 
		//{ name: 'styles', items: [ 'Styles', 'Format' ] },
		//{ name: 'tools', items: [ 'Maximize' ] },
		{ name: 'others', items: [ '-' ] }
		//,{ name: 'about', items: [ 'About' ] }, '/'
	];
	 //config.skin = 'icy_orange';config.removeButtons = 'Underline,Subscript,Superscript';
	// Set the most common block elements.
	config.format_tags = 'p;h1;h2;h3;pre';
 	config.pasteFromWordPromptCleanup = false;
	//config.forcePasteFromWord  = true;
	//config.pasteFromWordPromptCleanup  = true; 
	//config.font_defaultLabel = 'Tahoma';
	// Simplify the dialog windows.
	config.removeDialogTabs = 'image:advanced;link:advanced';
	 config.height = '300px';	
	 config.filebrowserUploadUrl = 'ckupload.php';
	 config.enterMode = CKEDITOR.ENTER_BR;
	 config.htmlEncodeOutput = false;
	config.entities = false;
		 config.scayt_autoStartup = true;
	 config.extraPlugins = 'wordcount';
 	 config.wordcount = {
 		// Whether or not you want to show the Paragraphs Count
		showParagraphs: false,
 		// Whether or not you want to show the Word Count
		showWordCount: false,
 		// Whether or not you want to show the Char Count
		showCharCount: true,
 		// Whether or not you want to count Spaces as Chars
		countSpacesAsChars: false,
 		// Whether or not to include Html chars in the Char Count
		countHTML: false,
 		// Maximum allowed Word Count
		//maxWordCount: -1, 
		// Maximum allowed Char Count
		maxCharCount: 1000//for unlimited
	};
};
