/**
 * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or http://ckeditor.com/license
 */
CKEDITOR.editorConfig = function( config ) {
    config.toolbarGroups = [
        { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
        { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
        { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
        { name: 'forms', groups: [ 'forms' ] },
        { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
        { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
        { name: 'links', groups: [ 'links' ] },
        { name: 'insert', groups: [ 'insert'] },
        '/',
        { name: 'styles', groups: [ 'styles' ] },
        { name: 'colors', groups: [ 'colors' ] },
        { name: 'tools', groups: [ 'tools' ] },
        { name: 'others', groups: [ 'others' ] },
        { name: 'about', groups: [ 'about' ] }
    ];

    config.removeButtons = 'Source,Save,Templates,Cut,Find,Copy,NewPage,Preview,Print,PasteText,PasteFromWord,Paste,Replace,SelectAll,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,HiddenField,ImageButton,About,Maximize,TextColor,Styles,Format,Font,FontSize,PageBreak,Iframe,SpecialChar,Smiley,HorizontalRule,Table,Anchor,Unlink,Link,BidiLtr,BidiRtl,Language,CreateDiv,Blockquote,RemoveFormat,ShowBlocks,BGColor';

    config.extraPlugins = 'image2';
    config.filebrowserUploadUrl = 'UPLOAD_NEW_APS.jsp';
    config.image_previewText = CKEDITOR.tools.repeat(' ', 100);
};