From 55854c868a076f13e9f0579f1258845153f03afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= Date: Sat, 3 Jun 2023 17:40:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'static/ckeditor'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/ckeditor/config.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 static/ckeditor/config.js diff --git a/static/ckeditor/config.js b/static/ckeditor/config.js new file mode 100644 index 00000000..18165a6b --- /dev/null +++ b/static/ckeditor/config.js @@ -0,0 +1,23 @@ +/** + * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license + */ +CKEDITOR.editorConfig = function (config) { + config.toolbarGroups = [ + { name: 'document', groups: ['mode', 'document', 'doctools'] }, + { name: 'clipboard', groups: ['undo', 'cleanup', 'clipboard'] }, + { name: 'styles', groups: ['styles'] }, + { name: 'colors', groups: ['colors'] }, + { name: 'paragraph', groups: ['align', 'paragraph', 'textindent', 'indent'] }, + { name: 'basicstyles', groups: ['basicstyles', 'list', 'bidi', 'blocks'] }, + { name: 'editing', groups: ['find', 'selection', 'spellchecker', 'editing'] }, + { name: 'links', groups: ['links'] }, + { name: 'insert', groups: ['insert'] }, + { name: 'tools', groups: ['tools'] } + ]; + config.height = 360; + config.removePlugins = 'exportpdf'; + config.extraPlugins = 'html5video,dedepagebreak,textindent'; + config.removeButtons = 'Save,NewPage,Print,Preview,Templates,Smiley,About,ShowBlocks,Iframe,Flash,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField'; + config.font_names='宋体/SimSun;楷体/KaiTi;黑体/SimHei;微软雅黑/Microsoft YaHei;微软正黑/Microsoft JhengHei'+ config.font_names; +}; \ No newline at end of file