el-text-editor 0.0.76 → 0.0.77
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.
@@ -903,7 +903,7 @@ class ElTextEditorComponent {
|
|
903
903
|
const imgWidth = img.width;
|
904
904
|
// If the image width exceeds the editor's width, fit it to the editor
|
905
905
|
const imgHTML = imgWidth > editorWidth
|
906
|
-
? `<img src="${img.src}" style="
|
906
|
+
? `<img src="${img.src}" style=" max-width: ${700}px; height: auto;">`
|
907
907
|
: `<img src="${img.src}" style="width: ${imgWidth}px; height: auto;">`;
|
908
908
|
this.newImageAdded.emit();
|
909
909
|
// Insert the image into the editor
|