/*
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 = 'pt';
	// config.uiColor = '#AADC6E';
	 config.extraPlugins = 'youtube';
	 
	 config.toolbar_Cms = [
                         	['Source','Preview','-','Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker'],
                         	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
                         	['FitWindow'],
                         	'/',
                         	['Styles','Format','Font','FontSize','-','Bold','Italic','Underline','StrikeThrough'],'/',
                         	['Subscript','Superscript','-','TextColor','BGColor'],
                         	['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
                         	['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],'/',
                         	['Link','Unlink','Anchor'],
                         	['Image','Flash','grafico','Table','HorizontalRule','Smiley','SpecialChar','PageBreak']
		                   ] ;
	 
	 config.toolbar_CR = [
	          		 	{ name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
	        		 	{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
	        		 	{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
	        		 	'/',
	        		 	{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
	        		 	{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
	        		 	{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
	        		 	{ name: 'insert', items : [ 'Image','Flash','Youtube', 'Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] },
	        		 	'/',
	        		 	{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
	        		 	{ name: 'colors', items : [ 'TextColor','BGColor' ] },
	        		 	{ name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
	        		 ] ;
	 
	 config.filebrowserFlashUploadUrl== 'popup.php?popup=flash1';
	 config.filebrowserImageBrowseLinkUrl= 'popup.php?popup=imagem1';
	 config.filebrowserImageBrowseUrl = 'popup.php?popup=imagem1';
	 config.filebrowserBrowseUrl = 'popup.php?popup=ficheiro1';
	 
	 //config.baseHref="http://localhost/leaseplan/";
	 config.contentsCss = '/caritas/editor.css';
	 config.templates_files = [ '/caritas/templates.js' ];
	 config.font_names =
		    'Arial/Arial, Helvetica, sans-serif;' +
		    'Times New Roman/Times New Roman, Times, serif;' +
		    'Jura/Jura, Jura, sans-serif;'+ 
			'Lato/Lato, Lato, sans-serif;'
	 
	 //config.entities = false;
	 //config.fillEmptyBlocks = false;
	 config.templates = 'default';
	 config.htmlEncodeOutput = false;
	 config.entities = false;
	 config.entities_latin= false;
	 
};