09cd58485f1d9e7b7c32c812acd624a3e22de8c6
[Packages/TYPO3.CMS.git] / typo3 / sysext / rte_ckeditor / Resources / Public / JavaScript / defaultconfig.js
1 /**
2 * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */
5
6 /**
7 * ToDo - this needs to be VERY simple file, as it gets modified by the inline configuration
8 * directly
9 * @param config
10 */
11 CKEDITOR.editorConfig = function( config ) {
12 // Define changes to default configuration here.
13 // For complete reference see:
14 // http://docs.ckeditor.com/#!/api/CKEDITOR.config
15
16 // The toolbar groups arrangement, optimized for two toolbar rows.
17 config.toolbarGroups = [
18 { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
19 { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
20 { name: 'links' },
21 { name: 'insert' },
22 { name: 'forms' },
23 { name: 'tools' },
24 { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
25 { name: 'others' },
26 '/',
27 { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
28 { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
29 { name: 'styles' },
30 { name: 'colors' },
31 { name: 'about' }
32 ];
33
34 // Remove some buttons provided by the standard plugins, which are
35 // not needed in the Standard(s) toolbar.
36 config.removeButtons = 'Underline,Subscript,Superscript,Anchor';
37
38 // Set the most common block elements.
39 config.format_tags = 'p;h1;h2;h3;pre';
40
41 // Simplify the dialog windows.
42 config.removeDialogTabs = 'image:advanced;link:advanced';
43
44 };
45
46 CKEDITOR.stylesSet.add('default', [
47 // Block-level styles
48 {name: 'Blue Title', element: 'h2', styles: {'color': 'Blue'}},
49 {name: 'Red Title', element: 'h3', styles: {'color': 'Red'}},
50 // Inline styles
51 {name: 'CSS Style', element: 'span', attributes: {'class': 'my_style'}},
52 {name: 'Marker: Yellow', element: 'span', styles: {'background-color': 'Yellow'}}
53 ]);