﻿/*
Copyright (c) 2003-2010, 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 = 'fr';
	// config.uiColor = '#AADC6E';

config.toolbar = 'Full';

config.toolbar_Full2 =
[
    ['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','div'],
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
    ['Link','Unlink','Anchor'],
    ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
    '/',
    ['Styles','Format','Font','FontSize'],
    ['TextColor','BGColor'],
    ['Maximize', 'ShowBlocks','-','About']
];

config.toolbar_Basic =
[
    ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']
];

};
CKEDITOR.on( 'instanceReady', function( ev )
{
    ev.editor.dataProcessor.writer.FillEmptyBlocks = 'false';
    ev.editor.dataProcessor.writer.setRules( 'p',
		{indent : false,
		 breakBeforeOpen : false,
		 breakAfterOpen : false,
		 breakBeforeClose : false,
		 breakAfterClose : false
		});
    ev.editor.dataProcessor.writer.setRules( 'ul',
		{indent : false,
		 breakBeforeOpen : false,
		 breakAfterOpen : false,
		 breakBeforeClose : false,
		 breakAfterClose : false
		});
    ev.editor.dataProcessor.writer.setRules( 'li',
		{indent : false,
		 breakBeforeOpen : false,
		 breakAfterOpen : false,
		 breakBeforeClose : false,
		 breakAfterClose : false
		});
	ev.editor.shiftEnterMode = CKEDITOR.ENTER_BR;
});