From 0759fb0654067606d9df76842b1556d39ae79aa9 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Fri, 26 Jul 2019 12:02:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=88=B0=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E7=9A=84=20froala-editor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/RichText.tsx | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index c145f8d8..339a9cba 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "downshift": "3.1.4", "echarts": "~4.1.0", "flv.js": "1.5.0", - "froala-editor": "2.8.1", + "froala-editor": "2.9.5", "history": "4.7.2", "hls.js": "0.12.2", "hoist-non-react-statics": "3.3.0", diff --git a/src/components/RichText.tsx b/src/components/RichText.tsx index 4bb9ba33..0a077afe 100644 --- a/src/components/RichText.tsx +++ b/src/components/RichText.tsx @@ -12,24 +12,38 @@ import $ from 'jquery'; [ require('froala-editor/js/froala_editor.min.js'), require('froala-editor/js/plugins/align.min'), + require('froala-editor/js/plugins/char_counter.min'), + require('froala-editor/js/plugins/code_beautifier.min'), + require('froala-editor/js/plugins/code_view.min'), require('froala-editor/js/plugins/colors.min'), + require('froala-editor/js/plugins/draggable.min'), + require('froala-editor/js/plugins/emoticons.min'), + require('froala-editor/js/plugins/entities.min'), + // require('froala-editor/js/plugins/file.min'), require('froala-editor/js/plugins/font_family.min'), require('froala-editor/js/plugins/font_size.min'), + require('froala-editor/js/plugins/forms.min'), + require('froala-editor/js/plugins/fullscreen.min'), + require('froala-editor/js/plugins/help.min'), require('froala-editor/js/plugins/image.min'), require('froala-editor/js/plugins/image_manager.min'), + require('froala-editor/js/plugins/inline_class.min'), require('froala-editor/js/plugins/inline_style.min'), require('froala-editor/js/plugins/line_breaker.min'), + require('froala-editor/js/plugins/line_height.min'), require('froala-editor/js/plugins/link.min'), require('froala-editor/js/plugins/lists.min'), require('froala-editor/js/plugins/paragraph_format.min'), require('froala-editor/js/plugins/paragraph_style.min'), + require('froala-editor/js/plugins/print.min'), + require('froala-editor/js/plugins/quick_insert.min'), require('froala-editor/js/plugins/quote.min'), require('froala-editor/js/plugins/save.min'), + require('froala-editor/js/plugins/special_characters.min'), require('froala-editor/js/plugins/table.min'), - require('froala-editor/js/plugins/code_view.min'), - // require('froala-editor/js/plugins/emotion'), - require('froala-editor/js/plugins/fullscreen.min'), + require('froala-editor/js/plugins/url.min'), require('froala-editor/js/plugins/video.min'), + require('froala-editor/js/plugins/word_paste.min') ].forEach(init => init()); // Require Editor CSS files.