1
|
/*
|
2
|
* Altair Admin
|
3
|
* Configuration file for ckeditor (wysiwyg editor)
|
4
|
*/
|
5
|
|
6
|
CKEDITOR.editorConfig = function( config ) {
|
7
|
// Define changes to default configuration here.
|
8
|
// For complete reference see:
|
9
|
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
|
10
|
|
11
|
config.skin = 'material_design,../../assets/skins/ckeditor/material_design/';
|
12
|
|
13
|
// The toolbar groups arrangement, optimized for two toolbar rows.
|
14
|
config.toolbarGroups = [
|
15
|
{ name: 'clipboard', groups: [ 'clipboard'] },
|
16
|
{ name: 'document', groups: [ 'undo', 'mode', 'document', 'doctools', 'tools', 'about' ] },
|
17
|
{ name: 'others', groups: [ 'others' ] },
|
18
|
'/',
|
19
|
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
|
20
|
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
|
21
|
{ name: 'styles', groups: [ 'styles' ] },
|
22
|
{ name: 'colors', groups: [ 'colors' ] },
|
23
|
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
|
24
|
{ name: 'insert', groups: [ 'insert' ] },
|
25
|
{ name: 'links', groups: [ 'links' ] },
|
26
|
{ name: 'forms', groups: [ 'forms' ] }
|
27
|
];
|
28
|
config.removeButtons = 'Scayt';
|
29
|
|
30
|
config.extraPlugins = 'autogrow,colorbutton,colordialog';
|
31
|
|
32
|
// Set the most common block elements.
|
33
|
config.format_tags = 'p;h1;h2;h3;pre';
|
34
|
|
35
|
config.height = 300;
|
36
|
|
37
|
config.autoGrow_minHeight = 300;
|
38
|
config.autoGrow_maxHeight = 520;
|
39
|
config.removePlugins = 'resize';
|
40
|
|
41
|
config.filebrowserWindowWidth = 800;
|
42
|
config.filebrowserWindowHeight = 420;
|
43
|
config.filebrowserBrowseUrl = 'file_manager/fm_ckeditor.html';
|
44
|
|
45
|
};
|