el-text-editor 0.0.55 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1313,6 +1313,7 @@ class ElTextEditorComponent {
1313
1313
  this.insertHtmlAtCaret(imgHtml);
1314
1314
  };
1315
1315
  reader.readAsDataURL(file);
1316
+ return;
1316
1317
  }
1317
1318
  }
1318
1319
  else if (item.type === "text/html") {
@@ -1320,12 +1321,14 @@ class ElTextEditorComponent {
1320
1321
  // Handle HTML paste
1321
1322
  const htmlData = clipboardData.getData("text/html");
1322
1323
  this.insertHtmlAtCaret(htmlData);
1324
+ return;
1323
1325
  }
1324
1326
  else if (item.type === "text/plain") {
1325
1327
  console.log("Plain text detected!");
1326
1328
  // Handle plain text paste
1327
1329
  const plainText = clipboardData.getData("text/plain");
1328
1330
  this.insertHtmlAtCaret(plainText);
1331
+ return;
1329
1332
  }
1330
1333
  }
1331
1334
  }