/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function(config) {
	config.toolbar_CubeCart = [
		['Source','-','Save','NewPage','Preview','-','Templates'],
		['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
		['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
		'/',
		['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
		['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		['Link','Unlink','Anchor'],
		['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
		'/',
		['Styles','Format','Font','FontSize'],['TextColor','BGColor'],['Maximize', 'ShowBlocks']
	];
	config.toolbar = 'CubeCart';
	config.filebrowserImageBrowseUrl	= 'admin.php?_g=filemanager&mode=fck'; 
	config.entities_greek = false ;
	config.protectedSource.push(/\{foreach[\s\S]*?}|\{\/foreach}/g);
}
CKEDITOR.on('instanceReady', function(ev) {
    ev.editor.dataProcessor.writer.selfClosingEnd = '>';
});