/*
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 = 'it';
	config.uiColor = '#398DD5';
	config.extraPlugins = 'uicolor';
	config.forcePasteAsPlainText = true;	
	config.resize_enabled = false;
	config.protectedSource.push( /<\?[\s\S]*?\?>/g );   // PHP Code
	config.protectedSource.push( /<%[\s\S]*?%>/g );   // ASP Code
	config.protectedSource.push( /(]+>[\s|\S]*?<\/asp:[^\>]+>)|(]+\/>)/gi );   // ASP.Net Code
};

CKEDITOR.on('instanceReady', function(ev) {
	// Out self closing tags the HTML4 way, like <br>.
	// ev.editor.dataProcessor.writer.selfClosingEnd = '>';
	ev.editor.dataProcessor.writer.setRules('p', {
		indent : false,
		breakBeforeOpen : false,
		breakAfterOpen : false,
		breakBeforeClose : false,
		breakAfterClose : false
	});
});
