config.js
1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
CKEDITOR.editorConfig = function( config ) {
config.extraPlugins = 'widget,widgetselection,lineutils,menu,panel,floatpanel,contextmenu,codemirror,bt_table';
config.toolbar = [
{ name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
{ name: 'editing', items: [ 'Scayt' ] },
{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'Strike', '-', 'RemoveFormat' ] },
{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote' ] },
'/',
{ name: 'styles', items: [ 'Styles', 'Format' ] },
{ name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'SpecialChar', '-', 'Link', 'Unlink', 'Anchor' ] },
{ name: 'tools', items: [ 'Source', 'Maximize' ] }
];
removeButtons = 'Subscript,Superscript,About,searchCode,autoFormat,CommentSelectedRange,UncommentSelectedRange,AutoComplete,Maximize,Strike';
config.format_tags = 'p;h1;h2;h3;pre';
config.codemirror = {
lineNumbers: true,
lineWrapping: true,
matchBrackets: true,
autoCloseTags: true,
autoCloseBrackets: true,
enableSearchTools: true,
enableCodeFolding: true,
enableCodeFormatting: true,
autoFormatOnStart: true,
autoFormatOnModeChange: true,
autoFormatOnUncomment: true,
mode: 'htmlmixed',
showSearchButton: true,
showTrailingSpace: true,
highlightMatches: true,
showFormatButton: true,
showCommentButton: true,
showUncommentButton: true,
showAutoCompleteButton: true,
styleActiveLine: true
};
};
CKEDITOR.timestamp = +new Date;