config_enhanced.js
2.68 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
CKEDITOR.editorConfig = function( config ) {
config.extraPlugins = 'widget,widgetselection,lineutils,fontAwesome,youtube,menu,panel,floatpanel,contextmenu,codemirror,bt_table';
originpath = location.href.split( '/index' );
config.contentsCss = originpath[0] + '/view/template/enhancement/js/font-awesome-4.7.0/css/font-awesome.min.css';
config.allowedContent = true;
config.fontAwesome_version = '4.7';
config.fontAwesome_html_tag = 'i';
config.fontAwesome_size = 'class';
CKEDITOR.dtd.$removeEmpty['span'] = false;
CKEDITOR.dtd.$removeEmpty['i'] = false;
config.fontAwesome_unicode = false;
config.toolbar = [
{ name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
{ name: 'editing', items: [ 'Find', 'Replace', '-', 'SelectAll', '-', 'Scayt' ] },
{ name: 'forms', items: [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
{ name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'CopyFormatting', 'RemoveFormat' ] },
'/',
{ name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl' ] },
{ name: 'links', items: [ 'Link', 'Unlink', 'Anchor', '-' ] },
{ name: 'insert', items: [ 'Image', 'Youtube', 'Flash', '-', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'Iframe', 'ShowBlocks' ] },
'/',
{ name: 'styles', items: [ 'FontAwesome', 'Styles', 'Format', 'Font', 'FontSize' ] },
{ name: 'colors', items: [ 'TextColor', 'BGColor', '-', 'Templates', '-', 'Source', '-', 'Maximize' ] }
];
config.removeButtons = 'Save,NewPage,Preview,Print,Replace,Find,SelectAll,Language,About,PageBreak';
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
};
config.font_names = 'GoogleWebFonts;' + config.font_names;
config.protectedSource.push(/<i[^>]*><\/i>/g);
config.forceSimpleAmpersand = true;
config.basicEntities = false;
config.entities_additional = '#1049';
config.entities_greek = false;
config.entities_latin = false;
};