1 |
efrain |
1 |
/**
|
|
|
2 |
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
|
|
|
3 |
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
4 |
*/
|
|
|
5 |
|
|
|
6 |
CKEDITOR.editorConfig = function( config ) {
|
|
|
7 |
// Define changes to default configuration here.
|
|
|
8 |
// For complete reference see:
|
|
|
9 |
// https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html
|
|
|
10 |
|
|
|
11 |
// The toolbar groups arrangement, optimized for a single toolbar row.
|
|
|
12 |
config.toolbarGroups = [
|
|
|
13 |
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
|
|
|
14 |
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
|
|
|
15 |
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
|
|
|
16 |
{ name: 'forms' },
|
|
|
17 |
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
|
|
|
18 |
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
|
|
|
19 |
{ name: 'links' },
|
|
|
20 |
{ name: 'insert' },
|
|
|
21 |
{ name: 'styles' },
|
|
|
22 |
{ name: 'colors' },
|
|
|
23 |
{ name: 'tools' },
|
|
|
24 |
{ name: 'others' },
|
|
|
25 |
{ name: 'about' }
|
|
|
26 |
];
|
|
|
27 |
|
|
|
28 |
// The default plugins included in the basic setup define some buttons that
|
|
|
29 |
// are not needed in a basic editor. They are removed here.
|
|
|
30 |
// config.removeButtons = 'Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript';
|
|
|
31 |
|
|
|
32 |
// Dialog windows are also simplified.
|
|
|
33 |
config.removeDialogTabs = 'image:advanced;link:advanced';
|
|
|
34 |
|
|
|
35 |
// Se the most common block elements.
|
|
|
36 |
config.format_tags = 'p;h1;h2;h3;pre';
|
|
|
37 |
|
|
|
38 |
config.autoGrow_minHeight = 80;
|
|
|
39 |
config.height = 80;
|
|
|
40 |
config.autoGrow_onStartup = true;
|
|
|
41 |
config.autoGrow_maxHeight = 500;
|
|
|
42 |
config.colorButton_enableMore = true;
|
|
|
43 |
config.plugins += ',removeRedundantNBSP,customCodeHighlighter';
|
|
|
44 |
};
|