From 300da484f8a4ebeb52408c14f5413ef58954851f Mon Sep 17 00:00:00 2001 From: jacky Date: Fri, 17 May 2024 21:24:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BB=E5=9B=BE=E4=BB=8E?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=8C=BA=E8=8E=B7=E5=8F=96=20=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E5=9B=BE=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/richtext/rich-edit.vue | 6 +- src/view/content/components/articleEdit.vue | 128 +++++++++++++------- 2 files changed, 92 insertions(+), 42 deletions(-) diff --git a/src/components/richtext/rich-edit.vue b/src/components/richtext/rich-edit.vue index 0087961..7d1c586 100644 --- a/src/components/richtext/rich-edit.vue +++ b/src/components/richtext/rich-edit.vue @@ -217,6 +217,10 @@ const isEmpty = () => { return editorRef.value.isEmpty() } -defineExpose({ isEmpty }) +const getHtml = () => { + return editorRef.value.getHtml() +} + +defineExpose({ isEmpty, getHtml }) diff --git a/src/view/content/components/articleEdit.vue b/src/view/content/components/articleEdit.vue index 6ebd625..89f1920 100644 --- a/src/view/content/components/articleEdit.vue +++ b/src/view/content/components/articleEdit.vue @@ -96,30 +96,24 @@ - - + -
-
- - - -
- 删除 -
-
+
+ + +
@@ -128,6 +122,24 @@
+ + +
+
+ + + +
+
+
+ +
+
+ +