el-text-editor 0.0.58 → 0.0.60

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.
@@ -1360,7 +1360,7 @@ class ElTextEditorComponent {
1360
1360
  const rows = text.split('\n').filter(row => row.trim() !== '');
1361
1361
  const tableRows = rows.map(row => {
1362
1362
  const cells = row.split('\t').map(cell => `<td class="px-1 py-1" >${cell}</td>`).join('');
1363
- return `<tr class="table-border-bottom">${cells}</tr>`;
1363
+ return `<tr class="table-border-top" style="border-top: ${this.themeModeTableBorderTop()}; width: 100% !important">${cells}</tr>`;
1364
1364
  }).join('');
1365
1365
  return `<table>${tableRows}</table>`;
1366
1366
  }
@@ -1379,6 +1379,15 @@ class ElTextEditorComponent {
1379
1379
  range.collapse(false);
1380
1380
  }
1381
1381
  }
1382
+ themeModeTableBorderTop() {
1383
+ const clrMode = document.body.getAttribute('data-layout-color');
1384
+ if (clrMode == 'dark') {
1385
+ return '1px solid #D0D0D0; !important';
1386
+ }
1387
+ else {
1388
+ return '1px solid #414141 !important';
1389
+ }
1390
+ }
1382
1391
  openFullscreen() {
1383
1392
  var elem = document.getElementById("textEditor");
1384
1393
  this.isFullScreen = true;