config.js 1.04 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', 'Blockquote', 'RemoveFormat', '-', 'TextColor', 'BGColor', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock']},
        {name: 'paragraph', items: ['NumberedList', 'BulletedList', 'Outdent', 'Indent']},
        {name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'Smiley', 'Iframe']},
    ];

    config.disableNativeSpellChecker = false;
    config.extraPlugins = 'autolink,image2,widget,widgetselection,lineutils,nbsp';
};