forked from ckeditor/ckeditor4
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.js
More file actions
55 lines (46 loc) · 2.29 KB
/
Copy pathconfig.js
File metadata and controls
55 lines (46 loc) · 2.29 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
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.skin = 'sangah';
config.plugins = 'dialogui,dialog,a11yhelp,basicstyles,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,menu,contextmenu,dialogadvtab,elementspath,enterkey,entities,find,floatingspace,listblock,richcombo,font,format,horizontalrule,htmlwriter,image,indent,indentblock,indentlist,justify,fakeobjects,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastefromword,pastetext,preview,print,removeformat,resize,selectall,showblocks,showborders,sourcearea,specialchar,stylescombo,tab,table,tabletools,tableresize,toolbar,undo,wysiwygarea,codemirror,imageattacher,autolink,openlink';
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-*)';
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;
CKEDITOR.dtd.$removeEmpty.span = 0;
};
// %LEAVE_UNMINIFIED% %REMOVE_LINE%