el-text-editor 0.0.68 → 0.0.69

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.
@@ -498,12 +498,6 @@ class ElTextEditorComponent {
498
498
  if (index >= 0) {
499
499
  images[index].setAttribute('src', newSrc);
500
500
  }
501
- else {
502
- console.warn(`Index ${index} is out of bounds. Total images: ${images.length}`);
503
- }
504
- }
505
- else {
506
- console.error('Editor element not found');
507
501
  }
508
502
  }
509
503
  initEditor() {
@@ -651,10 +645,6 @@ class ElTextEditorComponent {
651
645
  this.moveCaretToEnd(editor);
652
646
  }
653
647
  this.placeHolderRemove.emit();
654
- console.log('New data inserted at caret.');
655
- }
656
- else {
657
- console.log('No caret position found.');
658
648
  }
659
649
  }
660
650
  // // Move caret to the end of the editor content
@@ -1238,7 +1228,6 @@ class ElTextEditorComponent {
1238
1228
  }
1239
1229
  editImage() {
1240
1230
  let data;
1241
- console.log('this.editorFrom =', this.editorFrom);
1242
1231
  switch (this.editorFrom.name) {
1243
1232
  case 'section-content':
1244
1233
  data = { editIMG: true, from: 'htmlEditor', index: this.selectedItemIndex, id: this.editorFrom.id };
@@ -1300,12 +1289,6 @@ class ElTextEditorComponent {
1300
1289
  imgTags[index].setAttribute('src', newSrc);
1301
1290
  this.editorText = doc.body.innerHTML;
1302
1291
  }
1303
- else {
1304
- console.error(`Invalid index ${index}. There are only ${imgTags.length} <img> tags.`);
1305
- }
1306
- }
1307
- else {
1308
- console.error('No <img> tags found in the editor text.');
1309
1292
  }
1310
1293
  }
1311
1294
  navigateToIMGEditor(data) {