From 31ee6a4ae80f66faab5ed4f002b2b453234df32b Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 14 Mar 2024 17:07:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0markdown=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../paragraph/component/ParagraphForm.vue | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/ui/src/views/paragraph/component/ParagraphForm.vue b/ui/src/views/paragraph/component/ParagraphForm.vue index 3876fb365..6ca7a8e89 100644 --- a/ui/src/views/paragraph/component/ParagraphForm.vue +++ b/ui/src/views/paragraph/component/ParagraphForm.vue @@ -28,7 +28,8 @@ placeholder="请输入分段内容" :maxLength="4096" :preview="false" - style="height: 300px;" + :toolbars="toolbars" + style="height: 300px" /> @@ -47,6 +48,37 @@ const props = defineProps({ isEdit: Boolean }) +const toolbars = [ + 'bold', + 'underline', + 'italic', + '-', + 'title', + 'strikeThrough', + 'sub', + 'sup', + 'quote', + 'unorderedList', + 'orderedList', + 'task', + '-', + 'codeRow', + 'code', + 'link', + 'image', + 'table', + 'mermaid', + 'katex', + '-', + 'revoke', + 'next', + '=', + 'pageFullscreen', + 'preview', + 'htmlPreview', + 'catalog', +] + const form = ref({ title: '', content: ''