el-text-editor 0.0.23 → 0.0.24

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 style="border-collapse: collapse; width: ${tableWidth}px; border: 1px solid black;">`;
781
+ let table = `<br /><table style="border-collapse: collapse; width: ${tableWidth}px;>`;
782
782
  for (let i = 0; i < 3; i++) { // Number of rows
783
- table += '<tr>';
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="border: 1px solid #000; word-wrap: break-word; word-break: break-all; white-space: normal; min-width: ${cellMinWidth}px;">&nbsp;</td>`;
785
+ table += `<td style=" word-wrap: break-word; word-break: break-all; white-space: normal; min-width: ${cellMinWidth}px;">&nbsp;</td>`;
786
786
  }
787
787
  table += '</tr>';
788
788
  }
@@ -1126,7 +1126,7 @@ class ElTextEditorComponent {
1126
1126
  convertTextToTable(text) {
1127
1127
  const rows = text.split('\n').filter(row => row.trim() !== '');
1128
1128
  const tableRows = rows.map(row => {
1129
- const cells = row.split('\t').map(cell => `<td class="px-1 py-1" style="border: 1px solid #000">${cell}</td>`).join('');
1129
+ const cells = row.split('\t').map(cell => `<td class="px-1 py-1" >${cell}</td>`).join('');
1130
1130
  return `<tr >${cells}</tr>`;
1131
1131
  }).join('');
1132
1132
  return `<table>${tableRows}</table>`;