From 59612e4734d506c240998fc0a4cd72c16aec97ea Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 16 May 2024 14:06:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E5=AF=8C?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E7=BB=84=E4=BB=B6=E4=BC=98=E5=8C=96=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=97=B4=E8=B7=9D=E7=BB=84=E4=BB=B6=E7=AD=89=20=20#95?= =?UTF-8?q?42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/package.json | 1 + .../src/custom-component/rich-text/DeRichTextView.vue | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/package.json b/core/core-frontend/package.json index 9741a9d41d..673abee0e9 100644 --- a/core/core-frontend/package.json +++ b/core/core-frontend/package.json @@ -18,6 +18,7 @@ "@antv/l7plot": "^0.5.5", "@antv/s2": "^1.49.0", "@codemirror/lang-sql": "^6.4.0", + "@npkg/tinymce-plugins": "^0.0.7", "@tinymce/tinymce-vue": "^5.1.0", "@vueuse/core": "^9.13.0", "ace-builds": "^1.15.3", diff --git a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue index bc2b408be1..ddf80cccb3 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -47,6 +47,7 @@ import 'tinymce/plugins/contextmenu' // contextmenu import 'tinymce/plugins/directionality' import 'tinymce/plugins/nonbreaking' import 'tinymce/plugins/pagebreak' +import '@npkg/tinymce-plugins/letterspacing' import './plugins' //自定义插件 import { computed, nextTick, reactive, ref, toRefs, watch, onMounted, PropType } from 'vue' import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot' @@ -124,7 +125,7 @@ const init = ref({ 'vertical-content advlist autolink link image lists charmap media wordcount table contextmenu directionality pagebreak', // 插件 // 工具栏 toolbar: - 'undo redo |fontselect fontsizeselect |forecolor backcolor bold italic |underline strikethrough link| formatselect |' + + 'undo redo |letterspacing fontselect fontsizeselect |forecolor backcolor bold italic |underline strikethrough link| formatselect |' + 'top-align center-align bottom-align | alignleft aligncenter alignright | bullist numlist |' + ' blockquote subscript superscript removeformat | table image | fullscreen ' + '| bdmap indent2em lineheight formatpainter axupimgs',