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.
@@ -496,12 +496,6 @@ class ElTextEditorComponent {
|
|
496
496
|
if (index >= 0) {
|
497
497
|
images[index].setAttribute('src', newSrc);
|
498
498
|
}
|
499
|
-
else {
|
500
|
-
console.warn(`Index ${index} is out of bounds. Total images: ${images.length}`);
|
501
|
-
}
|
502
|
-
}
|
503
|
-
else {
|
504
|
-
console.error('Editor element not found');
|
505
499
|
}
|
506
500
|
}
|
507
501
|
initEditor() {
|
@@ -649,10 +643,6 @@ class ElTextEditorComponent {
|
|
649
643
|
this.moveCaretToEnd(editor);
|
650
644
|
}
|
651
645
|
this.placeHolderRemove.emit();
|
652
|
-
console.log('New data inserted at caret.');
|
653
|
-
}
|
654
|
-
else {
|
655
|
-
console.log('No caret position found.');
|
656
646
|
}
|
657
647
|
}
|
658
648
|
// // Move caret to the end of the editor content
|
@@ -1234,7 +1224,6 @@ class ElTextEditorComponent {
|
|
1234
1224
|
}
|
1235
1225
|
editImage() {
|
1236
1226
|
let data;
|
1237
|
-
console.log('this.editorFrom =', this.editorFrom);
|
1238
1227
|
switch (this.editorFrom.name) {
|
1239
1228
|
case 'section-content':
|
1240
1229
|
data = { editIMG: true, from: 'htmlEditor', index: this.selectedItemIndex, id: this.editorFrom.id };
|
@@ -1296,12 +1285,6 @@ class ElTextEditorComponent {
|
|
1296
1285
|
imgTags[index].setAttribute('src', newSrc);
|
1297
1286
|
this.editorText = doc.body.innerHTML;
|
1298
1287
|
}
|
1299
|
-
else {
|
1300
|
-
console.error(`Invalid index ${index}. There are only ${imgTags.length} <img> tags.`);
|
1301
|
-
}
|
1302
|
-
}
|
1303
|
-
else {
|
1304
|
-
console.error('No <img> tags found in the editor text.');
|
1305
1288
|
}
|
1306
1289
|
}
|
1307
1290
|
navigateToIMGEditor(data) {
|