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"));
 }