/*
Copyright (c) 2003-2011, 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 = 'MyToolbar';
	config.extraPlugins = 'audio';
	config.filebrowserBrowseUrl = 'kcfinder/browse.php?type=files';
	config.filebrowserImageBrowseUrl = 'kcfinder/browse.php?type=images';
	config.filebrowserFlashBrowseUrl = 'kcfinder/browse.php?type=flash';
	config.filebrowserUploadUrl = 'kcfinder/upload.php?type=files';
	config.filebrowserImageUploadUrl = 'kcfinder/upload.php?type=images';
	config.filebrowserFlashUploadUrl = 'kcfinder/upload.php?type=flash';
 
    config.toolbar_MyToolbar =
    [
        ['Source','-','Save','NewPage','Preview','-','Templates'],
        ['Cut','Copy','Paste','PasteText','-','SpellChecker','Scayt'],
        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
        ['Image','Flash','Audio','-','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],		
        '/',
        ['Format'],
        ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
        ['Link','Unlink','Anchor'],
        ['Maximize', 'ShowBlocks','-','About']
    ];
	
	CKEDITOR.config.protectedSource.push(/<\?[\s\S]*?\?>/g);

};
