Sfoglia il codice sorgente

⚙️ 修改细节问题

快乐的梦鱼 2 giorni fa
parent
commit
9fbcd17461
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/common/components/form/RichTextEditor2.vue

+ 3 - 3
src/common/components/form/RichTextEditor2.vue

@@ -65,9 +65,7 @@ const emit = defineEmits(['update:modelValue'])
 
 function edit() {
   show.value = true;
-  setTimeout(() => {
-
-  }, 200);
+  currentContent = props.modelValue;
 }
 function cancel() {
   confirm({
@@ -79,6 +77,7 @@ function cancel() {
   })
 }
 function save() {
+
   emit('update:modelValue', currentContent);
   show.value = false;
 }
@@ -102,6 +101,7 @@ function overMax(e: { html: string; text: string; }) {
   console.log('==== overMax :', e)
 }
 function initEditor(editor: any) {
+  currentEditor = editor;
   editor.setContents({
     html: props.modelValue
   })