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.
@@ -1317,6 +1317,7 @@ class ElTextEditorComponent {
1317
1317
  this.insertHtmlAtCaret(imgHtml);
1318
1318
  };
1319
1319
  reader.readAsDataURL(file);
1320
+ return;
1320
1321
  }
1321
1322
  }
1322
1323
  else if (item.type === "text/html") {
@@ -1324,12 +1325,14 @@ class ElTextEditorComponent {
1324
1325
  // Handle HTML paste
1325
1326
  const htmlData = clipboardData.getData("text/html");
1326
1327
  this.insertHtmlAtCaret(htmlData);
1328
+ return;
1327
1329
  }
1328
1330
  else if (item.type === "text/plain") {
1329
1331
  console.log("Plain text detected!");
1330
1332
  // Handle plain text paste
1331
1333
  const plainText = clipboardData.getData("text/plain");
1332
1334
  this.insertHtmlAtCaret(plainText);
1335
+ return;
1333
1336
  }
1334
1337
  }
1335
1338
  }