el-text-editor 0.0.28 → 0.0.30
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.
@@ -778,11 +778,11 @@ class ElTextEditorComponent {
|
|
778
778
|
const tableWidth = 825; // Table width in pixels
|
779
779
|
const cols = 3; // Number of columns
|
780
780
|
const cellMinWidth = tableWidth / cols; // Calculate minimum width for each cell
|
781
|
-
let table = `<br /><table
|
781
|
+
let table = `<br /><table style="width: ${tableWidth}px;">`;
|
782
782
|
for (let i = 0; i < 3; i++) { // Number of rows
|
783
783
|
table += '<tr class="table-border-bottom table-border-top vertical-align-middle">';
|
784
784
|
for (let j = 0; j < cols; j++) {
|
785
|
-
table += `<td style=" word-wrap: break-word; word-break: break-all; white-space: normal; min-width: ${cellMinWidth}px;"> </td>`;
|
785
|
+
table += `<td class=" table-border-bottom" style=" word-wrap: break-word; word-break: break-all; white-space: normal; min-width: ${cellMinWidth}px;"> </td>`;
|
786
786
|
}
|
787
787
|
table += '</tr>';
|
788
788
|
}
|