/**
 * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
 */

// var contentsCss = [baseUrl + '/css/style.css'];
var toolbar = [
    { name: 'styles', items: [ 'Source', 'Styles', 'Format' ] },
    { name: 'basicstyles', items: [ 'Bold', 'Italic' ] },
    { name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
    { name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar', 'Youtube', 'Html5audio' ] },
    { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ], items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote' ] },
];
var height = 280;

CKEDITOR.editorConfig = function( config ) {
    config.extraPlugins = 'youtube, html5audio',
    // config.contentsCss = contentsCss,
    config.toolbar = toolbar,
    config.allowedContent = true,
    config.height = height
    config.removePlugins = 'magicline';
    config.bodyClass = 'ckeditor';

    // Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
};

CKEDITOR.dtd.$removeEmpty['i'] = false;
CKEDITOR.dtd.$removeEmpty['span'] = false;
CKEDITOR.config.autoParagraph = false;
CKEDITOR.config.title = false;
