config.js
1.42 KB
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
config.toolbar = [
{name: 'document', items: ['Source']},
{name: 'clipboard', items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']},
{name: 'links', items: ['Link', 'Unlink', 'Anchor']},
{name: 'styles', items: ['Format', 'Font', 'FontSize']},
'/',
{name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', 'RemoveFormat', '-', 'TextColor', 'BGColor', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']},
{name: 'paragraph', items: ['NumberedList', 'BulletedList', 'Outdent', 'Indent']},
{name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'Smiley', 'Iframe']},
];
config.toolbar_Headline = [
{name: 'clipboard', items: ['Cut', 'Copy', 'Paste', '-', 'Undo', 'Redo']},
{name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'RemoveFormat', '-', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']},
];
config.image2_alignClasses = ['cke-leftImage', 'cke-centerImage', 'cke-rightImage'];
config.disableNativeSpellChecker = false;
config.extraPlugins = 'autolink,image2,widget,widgetselection,lineutils,nbsp';
};