Ticket #16873: builder-config.js

File builder-config.js, 3.4 KB (added by abayob, 7 years ago)

builder-config.js version 4.5.7

Line 
1/**
2 * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */
5
6CKEDITOR.editorConfig = function( config ) {
7        // Define changes to default configuration here. For example:
8        // config.language = 'fr';
9        // config.uiColor = '#AADC6E';
10
11    config.toolbarGroups = [
12        { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
13        { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
14        { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
15        { name: 'forms', groups: [ 'forms' ] },
16        { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
17        { name: 'paragraph', groups: [ 'list', 'indent', 'align', 'blocks', 'bidi', 'paragraph' ] },
18        { name: 'links', groups: [ 'links' ] },
19        { name: 'insert', groups: [ 'insert' ] },
20        { name: 'styles', groups: [ 'styles' ] },
21        { name: 'colors', groups: [ 'colors' ] },
22        { name: 'tools', groups: [ 'tools' ] },
23        { name: 'others', groups: [ 'others' ] },
24        { name: 'about', groups: [ 'about' ] }
25    ];
26
27    // StylesSet config of Abayo1.0
28    // config.stylesSet = [
29    // { name: 'Strong Emphasis', element: 'strong' },
30    // { name: 'Emphasis', element: 'em' },
31    // { name: 'Heading 1', element: 'h1' },
32    // { name: 'Heading 2', element: 'h2' },
33    // { name: 'Heading 3', element: 'h3' },
34    // { name: 'Heading 4', element: 'h4' },
35    // { name: 'Heading 5', element: 'h5' },
36    // { name: 'Heading 6', element: 'h6' },
37    // { name: 'lead', element: 'p', attributes: { 'class': 'lead' }},
38    // ];
39
40
41    config.removeButtons = 'Source,Save,Templates,NewPage,Preview,Print,Replace,Find,SelectAll,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CreateDiv,BidiLtr,BidiRtl,Language,Flash,Table,Smiley,PageBreak,Iframe,Maximize,ShowBlocks,About';
42
43
44    config.extraPlugins = 'sharedspace,butane,placebo,lineheight,iconfont'; 
45    config.removePlugins = 'maximize,resize,floatingspace,magicline';
46
47    // config.extraPlugins = 'lineutils,widget,butane,placebo,lineheight,fontawesome';
48    // config.removePlugins = 'magicline,ckeditor-gwf-plugin,gwfplugin';
49
50    config.fontSize_sizes = '8/8px;9/9px;10/10px;11/11px;12/12px;13/13px;14/14px;15/15px;16/16px;18/18px;20/20px;21/21px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px;';
51    config.line_height = '1;1.1;1.2;1.3;1.4;1.5;1.6;1.7;1.8;1.9;2;3';
52    config.font_names = 'Open Sans (Default)/\'Open Sans\', sans-serif;' + config.font_names;
53
54    //Remove all CSS by entering as plain text
55    config.enterMode = CKEDITOR.ENTER_BR;
56    config.shiftEnterMode = CKEDITOR.ENTER_BR;
57    config.forcePasteAsPlainText = false;
58   
59
60    // config.protectedSource.push(/<(i|h1|h2|h3|h4|h5|h6)[^>]*><\/(i|h1|h2|h3|h4|h5|h6)>/g);
61   
62    config.allowedContent = true;
63    // config.extraAllowedContent = 'p(*)[*]{*};div(*)[*]{*};li(*)[*]{*};ul(*)[*]{*};h1(*)[*]{*};h2(*)[*]{*};h3(*)[*]{*};h4(*)[*]{*};h5(*)[*]{*};h6(*)[*]{*}';
64
65    // CKEDITOR.dtd.$removeEmpty['i']  = false;
66    // CKEDITOR.dtd.$removeEmpty['h1'] = false;
67    // CKEDITOR.dtd.$removeEmpty['h2'] = false;
68    // CKEDITOR.dtd.$removeEmpty['h3'] = false;
69    // CKEDITOR.dtd.$removeEmpty['h4'] = false;
70    // CKEDITOR.dtd.$removeEmpty['h5'] = false;
71    // CKEDITOR.dtd.$removeEmpty['span'] = false;
72};
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy