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

CKEDITOR.editorConfig = function( config )
{
    config.extraPlugins="ResetText";
	// Define changes to default configuration here. For example:
	config.defaultLanguage = 'zh-cn';
	config.enterMode =CKEDITOR.ENTER_BR;
	config.shiftEnterMode =CKEDITOR.ENTER_P;
	// config.uiColor = '#AADC6E';
//	config.skin='v2';  
    config.fullPage =true;
    config.tabSpaces = 2;    
    config.height =400;
    
    config.protectedSource.push(/<option[\s]*[^>]*>[\s\S]*?<\/option>/gi); 
    config.protectedSource.push(/<li[\s]*[^>]*>[\s\S]*?<\/li>/gi);
    config.protectedSource.push(/<dd[\s]*[^>]*>[\s\S]*?<\/dd>/gi);
    config.protectedSource.push(/<dt[\s]*[^>]*>[\s\S]*?<\/dt>/gi);
    
	config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html';
    config.filebrowserImageBrowseUrl = '/ckfinder/ckfinder.html?Type=Images';
    config.filebrowserFlashBrowseUrl = '/ckfinder/ckfinder.html?Type=Flash';
    config.filebrowserUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files';
    config.filebrowserImageUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images';
    config.filebrowserFlashUploadUrl = '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash';
    config.filebrowserWindowWidth = '800';
    config.filebrowserWindowHeight = '500';
    config.toolbar='EditContent';
    config.toolbar_EditLabel =
    [
         ['Source','ResetText'],
         ['Cut','Copy','Paste','Undo','Redo','TextColor','BGColor','Image','Table','Bold','Italic','Underline','Link','Unlink','Font','FontSize']       
    ];
    config.toolbar_EditLabelOptions =
    [
         ['Source','ResetText'],
         ['Cut','Copy','Paste','Undo','Redo','TextColor','BGColor','Image','Table','Bold','Italic','Link','Unlink']       
    ];
    config.toolbar_EditContent =
    [ 
        ['Source','ResetText','-','Preview'],
        ['Cut','Copy','Paste','PasteText','PasteFromWord'],
        ['Undo','Redo','-','Find','Replace'],        
        '/',
        ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
        ['NumberedList','BulletedList'], 
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], 
        ['Link','Unlink','Anchor'],
        ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'], 
        '/',
        ['Styles','Format','Font','FontSize'],
        ['TextColor','BGColor'], 
        ['Maximize'] 
   ];        
//   config.toolbar_Full =
//    [ 
//        ['Source','ResetText','-','Save','NewPage','Preview','-','Templates'],
//        ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
//        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
//        ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
//        '/',
//        ['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','-','About'] 
//   ];

};
