/**
 * @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.ProcessHTMLEntities = false;
    config.entities = false;
    config.entities_latin = false;
    config.entities_greek = true;
    config.entities_processNumerical = true;
    config.entities_additional = '#39';
    config.height = '150px';
    config.skin = 'bootstrapck';

    config.extraPlugins = "youtube";

    config.toolbar = [
        ['Preview', 'Image', 'Youtube'],
        ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'],
        ['Undo', 'Redo'],
        ['Link', 'Unlink'],
        ['Bold', 'Italic', 'Strike'],
        ['Table', 'RemoveFormat', 'TextColor', 'BGColor', 'FontSize'],
        ['NumberedList', 'BulletedList', 'Outdent', 'Indent'],
        ['Source', 'Maximize']
    ];

    config.enterMode = CKEDITOR.ENTER_P;

    config.filebrowserBrowseUrl = 'ckeditor/ckfinder/ckfinder.html',
    config.filebrowserImageBrowseUrl = 'ckeditor/ckfinder/ckfinder.html?type=Images',
    config.filebrowserUploadUrl = 'ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
    config.filebrowserImageUploadUrl = 'ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
};
