zhangjie 2 년 전
부모
커밋
c3fae3ea11
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      src/components/vEditor/clipboard.js

+ 2 - 3
src/components/vEditor/clipboard.js

@@ -247,7 +247,7 @@ export async function pasteHandle(event) {
     for (let index = 0; index < htmlItems.length; index++) {
       await pasteHtmlItem(htmlItems[index]);
     }
-    // _this.$refs.editor.dispatchEvent(new Event("input"));
+    _this.$refs.editor.dispatchEvent(new Event("input"));
     return;
   }
 
@@ -261,7 +261,7 @@ export async function pasteHandle(event) {
       const file = fileItems[index].getAsFile();
       await pasteImage(file);
     }
-    // _this.$refs.editor.dispatchEvent(new Event("input"));
+    _this.$refs.editor.dispatchEvent(new Event("input"));
     return;
   }
 
@@ -277,5 +277,4 @@ export async function pasteHandle(event) {
       console.log("... paste: other ");
     }
   }
-  // _this.$refs.editor.dispatchEvent(new Event("input"));
 }