el-text-editor 0.0.58 → 0.0.59
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.
- package/esm2020/lib/el-text-editor.component.mjs +11 -2
- package/fesm2015/el-text-editor.mjs +10 -1
- package/fesm2015/el-text-editor.mjs.map +1 -1
- package/fesm2020/el-text-editor.mjs +10 -1
- package/fesm2020/el-text-editor.mjs.map +1 -1
- package/lib/el-text-editor.component.d.ts +1 -0
- package/package.json +1 -1
@@ -1364,7 +1364,7 @@ class ElTextEditorComponent {
|
|
1364
1364
|
const rows = text.split('\n').filter(row => row.trim() !== '');
|
1365
1365
|
const tableRows = rows.map(row => {
|
1366
1366
|
const cells = row.split('\t').map(cell => `<td class="px-1 py-1" >${cell}</td>`).join('');
|
1367
|
-
return `<tr class="table-border-
|
1367
|
+
return `<tr class="table-border-top" style="border-top: ${this.themeModeTableBorderTop()}">${cells}</tr>`;
|
1368
1368
|
}).join('');
|
1369
1369
|
return `<table>${tableRows}</table>`;
|
1370
1370
|
}
|
@@ -1384,6 +1384,15 @@ class ElTextEditorComponent {
|
|
1384
1384
|
range.collapse(false);
|
1385
1385
|
}
|
1386
1386
|
}
|
1387
|
+
themeModeTableBorderTop() {
|
1388
|
+
const clrMode = document.body.getAttribute('data-layout-color');
|
1389
|
+
if (clrMode == 'dark') {
|
1390
|
+
return '1px solid #D0D0D0; !important';
|
1391
|
+
}
|
1392
|
+
else {
|
1393
|
+
return '1px solid #414141 !important';
|
1394
|
+
}
|
1395
|
+
}
|
1387
1396
|
openFullscreen() {
|
1388
1397
|
var elem = document.getElementById("textEditor");
|
1389
1398
|
this.isFullScreen = true;
|