CKeditor 4.x Toolbar Buttons Configuration: I use this content in the file /admin/view/javascript/ckeditor/config.js
Be aware of the last 3 characters!
***************************
Code: Select all
/**
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.editorConfig = function( config ) {
config.filebrowserWindowWidth = '800';
config.filebrowserWindowHeight = '500';
config.resize_enabled = true;
config.htmlEncodeOutput = false;
config.entities = false;
config.allowedContent = true;
config.extraPlugins = 'opencart,codemirror';
config.codemirror_theme = 'monokai';
config.toolbar = [
{ name: 'document', items: [ 'Source' ] },
{ name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
{ name: 'colors', items: [ 'TextColor', 'BGColor' ] },
{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList', 'Outdent', 'Indent', 'Blockquote', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
{ name: 'links', items: [ 'Link', 'Unlink' ] },
{ name: 'insert', items: [ 'Bwimage', 'Image', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'Iframe' ] },
]};