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
| /**
| * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
| * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
| */
|
| CKEDITOR.editorConfig = function (config) {
| CKEDITOR.config.allowedContent = true;
|
| config.skin = 'moonocolor';
|
| config.extraPlugins = 'html5video,widget,widgetselection,clipboard,lineutils,autoformat,uploadimage';
|
|
| /*È¥µôͼƬԤÀÀ¿òµÄÎÄ×Ö*/
| config.image_previewText = ' ';
| // ½çÃæÓïÑÔ£¬Ä¬ÈÏΪ 'en'
| config.language = 'zh-cn';
| // ÉèÖÿí¸ß
| config.height = 500;
| //Òþ²Ø³¬Á´½ÓÓë¸ß¼¶Ñ¡Ïî
| config.removeDialogTabs = 'image:advanced;image:Link';
| //config.toolbarGroups = [
| // { name: 'clipboard', groups: ['clipboard', 'undo'] },
| // { name: 'editing', groups: ['find', 'selection', 'spellchecker', 'editing'] },
| // { name: 'forms', groups: ['forms'] },
| // { name: 'basicstyles', groups: ['basicstyles', 'cleanup', 'autoformat'] },
| // { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi', 'paragraph'] },
| // { name: 'links', groups: ['links'] },
| // { name: 'insert', groups: ['insert', 'html5video'] },
| // { name: 'styles', groups: ['styles'] },
| // { name: 'colors', groups: ['colors'] },
| // { name: 'document', groups: ['document', 'doctools', 'mode'] },
| // { name: 'tools', groups: ['tools'] },
| // { name: 'others', groups: ['others'] },
| // { name: 'about', groups: ['about'] }
| //];
|
| config.toolbar = [
| { name: 'document', groups: ['mode', 'document', 'doctools'], items: ['Preview', 'Templates'] },
| { name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', '-', 'Undo', 'Redo'] },
| { name: 'editing', groups: ['find', 'selection', 'spellchecker'], items: ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'] },
| { name: 'forms', items: ['Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton'] },
| //'/',
| { name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'CopyFormatting', 'RemoveFormat'] },
| { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'], items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl'] },
| { name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
| { name: 'insert', items: ['Image', 'Html5video', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'Iframe'] },
| //'/',
| { name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] },
| { name: 'colors', items: ['TextColor', 'BGColor'] },
| { name: 'others', items: ['-','autoformat'] }
| ];
|
| //ÒÆ³ýµÄ°´Å¥
| //config.removeButtons = 'Templates,Print,Find,Replace,SelectAll,Scayt,Checkbox,Form,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CreateDiv,Blockquote,BidiLtr,BidiRtl,Flash,PageBreak,Iframe,About,ShowBlocks,Smiley,SpecialChar,HorizontalRule,CopyFormatting,RemoveFormat';
|
| config.toolbarCanCollapse = true;
|
| config.filebrowserHtml5videoUploadUrl = "/Api/Tools/CkEditorUploadFiles";//ÉÏ´«ÊÓÆµµÄµØÖ·
|
| //ÉÏ´«Í¼Æ¬´°¿ÚÓõ½µÄ½Ó¿Ú
| config.filebrowserImageUploadUrl = "/Api/Tools/CkEditorUploadFiles";
| config.filebrowserUploadUrl = "/Api/Tools/CkEditorUploadFiles";
|
| // ʹÉÏ´«Í¼Æ¬µ¯´°³öÏÖ¶ÔÓ¦µÄ¡°ÉÏ´«¡±tab±êÇ©
| config.removeDialogTabs = 'image:advanced;link:advanced';
|
| //Õ³ÌùͼƬʱÓõõ½
| config.uploadUrl = '/Api/Tools/CkEditorUploadFiles';
|
|
| // ¹¤¾ßÀ¸£¨»ù´¡'Basic'¡¢È«ÄÜ'Full'¡¢×Ô¶¨Ò壩plugins/toolbar/plugin.js
| config.baseFloatZIndex = 99999999;
|
|
|
| };
|
|