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

CKEDITOR.editorConfig = function( config )
{
	config.removePlugins='image,link';
	config.extraPlugins='nvmodule,nvfontawesome,nvdocument,nvpage,nvlink,nvimage';
	config.contentsCss = ['/css/min/styles.min.css', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css', 'https://use.fontawesome.com/releases/v5.7.2/css/all.css', 'https://pro.fontawesome.com/releases/v5.7.2/css/all.css'];
	config.allowedContent = true;
	config.filebrowserWindowWidth 		= jQuery(window).width() * 0.99;
    config.filebrowserWindowHeight 		= jQuery(window).height() * 0.99;
    config.filebrowserImageWindowWidth 	= jQuery(window).width() * 0.99;
    config.filebrowserImageWindowHeight = jQuery(window).height() * 0.99;

	config.toolbar = [
		{ name: 'document', items: [ 'Source', '-', 'RemoveFormat', '-', 'ShowBlocks' ] },
		{ name: 'insert', items: [ 'nvimage', 'nvpage', 'nvdocument', 'nvlink', 'Unlink', 'nvmodule', 'nvfontawesome', 'Table', 'HorizontalRule' ] },
		{ name: 'clipboard', items: [ 'PasteText', 'PasteFromWord', '-', 'Scayt' ] },
		{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline' ] },
		{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
		{ name: 'styles', items: [ 'Styles', 'Format', 'FontSize' ] },
		{ name: 'colors', items: [ 'TextColor', 'BGColor' ] }
	];
};

CKEDITOR.dtd.$removeEmpty.span 	= 0;
CKEDITOR.dtd.$removeEmpty.em 	= 0;
CKEDITOR.dtd.$removeEmpty.i 	= 0;
