﻿/*
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.fullPage	= false;
	config.startupOutlineBlocks = false;
	
	config.skin = 'radiance';
	config.uiColor = '#606060';
	config.dialog_backgroundCoverColor = 'rgb(0, 0, 0)';
	config.dialog_backgroundCoverOpacity = 0.75;
	
	config.templates_files = [ '/ckeditor_32/mmorpg_templates.js' ];
	
	config.protectedSource.push( /<script[\s|\S]+?<\/script>/g );
	config.protectedSource.push(/<ADMARKER>.*?<\/ADMARKER>/g);
	config.protectedSource.push(/<POLLMARKER>.*?<\/POLLMARKER>/g);	
	config.contentsLangDirection = 'ltr';
	config.entities = true;
	config.entities_greek = true;
	config.entities_latin = true;
	config.emailProtection = 'mt(NAME,DOMAIN,SUBJECT,BODY)';
	config.startupFocus = false;
	config.forcePasteAsPlainText = false;
	config.pasteFromWordPromptCleanup = true;
	config.forceSimpleAmpersand = true;
	config.toolbarCanCollapse = false;
	config.baseFloatZIndex = 10000;
	config.ignoreEmptyParagraph = true;
	config.templates_replaceContent = true;
	config.enterMode = 'p';
	config.shiftEnterMode = 'br';
	config.colorButton_enableMore = true;
	config.undoStackSize = 15;
	config.resize_enabled = false;
	config.disableObjectResizing = true;
	
	// Not sure how to get the custom 'Red Title' style setup.	
	
	// Toolbars
	config.toolbar_Full = [
		['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
		['Cut','Copy','Paste','PasteText','PasteWord','-','Print'],
		['Undo','Redo','-','Find','Replace','SpellChecker','-','SelectAll','RemoveFormat'],
		['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
		'/',
		['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
		['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
		['Link','Unlink','Anchor'],
		['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
		'/',
		['Style','FontFormat','FontName','FontSize'],
		['TextColor','BGColor'],
		['FitWindow','ShowBlocks','-','About']		// No comma for the last row.
	] ;
	
	config.toolbar_Basic = [
		['Bold','Italic','-','NumberedList','BulletedList','-','Link','Unlink']
	] ;
	
	config.toolbar_ForumBar = [
		['Cut','Copy','Paste','PasteText','PasteWord'],
		['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
		['FontName','FontSize'],
		'/',
		['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
		['NumberedList','BulletedList','-','Outdent','Indent'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
		['Link','Unlink'],
		['Image','Table','Rule','SpecialChar'],
		['TextColor','BGColor']	
	];
	
	config.toolbar_BlogBar = [
		['Cut','Copy','Paste','PasteText','PasteWord'],
		['Undo','Redo','-','Find','Replace','SpellChecker','-','SelectAll','RemoveFormat'],
		['FontName','FontSize'],
		'/',
		['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
		['NumberedList','BulletedList','-','Outdent','Indent'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
		['Link','Unlink'],
		['Image','Table','Rule','SpecialChar'],
		['TextColor','BGColor']	
	];
	
	config.toolbar_ForumBarAdmin = [
		['Source','Cut','Copy','Paste','PasteText','PasteWord'],
		['Undo','Redo','-','Find','Replace','SpellChecker','-','SelectAll','RemoveFormat'],
		['FontName','FontSize'],
		'/',
		['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
		['NumberedList','BulletedList','-','Outdent','Indent'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
		['Link','Unlink'],
		['Image','Table','Rule','SpecialChar'],
		['TextColor','BGColor']	
	];
	
	config.toolbar_EditorTemplates = [
		['Templates','Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
		['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
		['Link','Unlink','Anchor'],
		['Image','Table','Rule','SpecialChar','PageBreak','-','FitWindow'],
		'/',
		['Source','Cut','Copy','Paste','PasteText','PasteWord','SpellChecker','-','Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat','HiddenField','FontSize','TextColor','BGColor']
	];
	
	config.toolbar_BlogComments = [
		['Bold','Italic','-','NumberedList','BulletedList','-','TextColor']
	] ;
	
};

