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 @@
+ + +
+
+ + + +
+
+
+ +
+
+ +