/** * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; config.language = 'ru'; // config.uiColor = '#AADC6E'; config.toolbar = 'common'; config.contentsCss = ['https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/slate/bootstrap.min.css', '/design/carheart/css/styles.css', '/design/carheart/css/ckeditor.css?v=455668']; //config.contentsCss = [ '/php/ckeditor/contents.css']; config.toolbar_common = [ ['Source','-','Save','NewPage','Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], '/', ['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'], ['jQuerySpellChecker'] ]; config.toolbar = 'common'; config.toolbar_basic = [ ['Source'], ['Paste','PasteText','PasteFromWord','RemoveFormat'], ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Link','Unlink'], ['Image','Table','SpecialChar'], '/', ['Styles','Format','Font','FontSize'], ['TextColor','BGColor'], ['Maximize', 'ShowBlocks','-','About'] ]; config.indentClasses = ["ul-grey", "ul-red", "text-red", "ul-content-red", "circle", "style-none", "decimal", "paragraph-portfolio-top", "ul-portfolio-top", "url-portfolio-top", "text-grey"]; config.protectedSource.push(/<(style)[^>]*>.*<\/style>/ig); config.protectedSource.push(/<(script)[^>]*>.*<\/script>/ig);// разрешить теги