CKEDITOR.editorConfig = function( config )
{
	// Define changes to default configuration here.
	
	 config.language = lang;

	 config.entities = false;
	 config.entities_greek = false;
	 config.entities_latin = false;
	 config.toolbar = 'Linea21';
	 config.width = 600;
	 config.resize_maxWidth = 590;
	 config.resize_minWidth = 590;
	 
	 config.removePlugins = 'link';
	 config.extraPlugins = 'magicline,pastefromword,adv_link';
	 config.autoGrow_maxHeight= 300;
	 CKEDITOR.config.allowedContent = true; // prevent ckeditor removing attributes like id or class from div
	 
	 config.toolbar_Linea21 =
	 [
	     ['Cut','Copy','Paste','PasteText','PasteFromWord'],
	     ['Undo','Redo','-','Find','Replace','-','RemoveFormat'],
	     ['Source','About','-','Print'],
	     ['Maximize', 'ShowBlocks','Preview'],
	     '/',
	     ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
	     ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
	     ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
	     ['Link','Unlink','Anchor'],
	     ['Image','Flash','Table','HorizontalRule','SpecialChar'],
	     ['Styles','Format','Font','FontSize'],
	     ['TextColor','BGColor']
	 ];

};
