forked from emawind84/ckeditor-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
121 lines (109 loc) · 2.96 KB
/
config.js
File metadata and controls
121 lines (109 loc) · 2.96 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
117
118
119
120
121
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.skin = 'moono-lisa';
config.plugins =
'a11yhelp,' +
'autolink,' +
'basicstyles,' +
'blockquote,' +
'clipboard,' +
'colorbutton,' +
'colordialog,' +
'contextmenu,' +
'dialogadvtab,' +
'elementspath,' +
'enterkey,' +
'entities,' +
'fakeobjects,' +
'find,' +
'floatingspace,' +
'font,' +
'format,' +
'horizontalrule,' +
'htmlwriter,' +
'image,' +
'image2,' +
'imageattacher,' +
'indentblock,' +
'indentlist,' +
'justify,' +
'link,' +
'list,' +
'liststyle,' +
'magicline,' +
'maximize,' +
'newpage,' +
'openlink,' +
'pagebreak,' +
'panel,' +
'pastefromword,' +
'pastetext,' +
'preview,' +
'print,' +
'removeformat,' +
'resize,' +
'richcombo,' +
'selectall,' +
'showblocks,' +
'showborders,' +
'sourcearea,' +
'specialchar,' +
'stylescombo,' +
'tab,' +
'table,' +
'tableselection,' +
'tableresize,' +
'tabletools,' +
'toolbar,' +
'undo,' +
'wysiwygarea,' +
'codemirror,' +
'embed,' +
'uploadimage';
config.codemirror = {
showFormatButton: false,
showCommentButton: false,
showUncommentButton: false,
showAutoCompleteButton: false
};
//config.allowedContent = true;
//config.extraAllowedContent = '*(*){*}[*]';
config.allowedContent = {
$1: {
// Use the ability to specify elements as an object.
elements: CKEDITOR.dtd,
attributes: true,
styles: true,
classes: true
}
};
config.disallowedContent = 'script;*{mso-*,-ms-*};*(mso-*);link;';
if(typeof __LOCALE__ !== "undefined"){
config.language = __LOCALE__ || 'en';
}
config.contentsCss = [CKEDITOR.getUrl('wysiwyg_reset.css'), CKEDITOR.getUrl('contents.css')];
config.docType = '<!DOCTYPE html>';
//config.fullPage = true;
config.removePlugins = 'base64image';
config.removeButtons = 'Image';
config.font_names = "바탕/batang,바탕,sans-serif;맑은 고딕/Malgun Gothic,'맑은 고딕',sans-serif;돋움/돋움,Dotum,sans-serif;굴림/Gulim,굴림,AppleGothic,sans-serif;HY견고딕/HY견고딕,sans-serif;" + config.font_names;
config.baseFloatZIndex = 120;
// copyfromword options
config.pasteFromWordRemoveFontStyles = false;
config.pasteFromWordRemoveStyles = false;
//config.pasteFromWordPromptCleanup = true;
config.openlink_enableReadOnly = true;
config.embed_provider = 'http://iframe.ly/api/oembed?url={url}&api_key=8ab06d3b30f8e7280c1fa8&callback={callback}';
config.uploadUrl = '/spr/edms/image/upload.json';
CKEDITOR.dtd.$removeEmpty.span = 0;
CKEDITOR.dtd.$removeEmpty.title = 1;
CKEDITOR.dtd.$removeEmpty.p = 1;
CKEDITOR.dtd.$removeEmpty.br = 1;
};
// %LEAVE_UNMINIFIED% %REMOVE_LINE%