@wangeditor-next/editor 5.3.2 → 5.3.4
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/CHANGELOG.md +19 -0
- package/dist/css/style.css +66 -0
- package/dist/index.esm.js +1484 -2242
- package/dist/index.js +1415 -2173
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.3.4](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/editor@5.4.0...@wangeditor-next/editor@5.3.4) (2024-07-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @wangeditor-next/editor
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [5.4.0](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/editor@5.3.2...@wangeditor-next/editor@5.4.0) (2024-07-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* Table add merge / split cell ([26250fa](https://github.com/cycleccc/wangEditor/commit/26250faaa6fbbbdd39a4d5c28364df9d944596bd))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [5.3.2](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/editor@5.3.1...@wangeditor-next/editor@5.3.2) (2024-07-08)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @wangeditor-next/editor
|
package/dist/css/style.css
CHANGED
|
@@ -535,6 +535,10 @@ body .w-e-modal * {
|
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
|
|
538
|
+
.w-e-text-container [data-slate-editor] {
|
|
539
|
+
/* 干掉 Chrome 默认选区样式*/
|
|
540
|
+
/* 拖动 Style */
|
|
541
|
+
}
|
|
538
542
|
.w-e-text-container [data-slate-editor] .table-container {
|
|
539
543
|
width: 100%;
|
|
540
544
|
overflow-x: auto;
|
|
@@ -542,9 +546,12 @@ body .w-e-modal * {
|
|
|
542
546
|
padding: 10px;
|
|
543
547
|
border-radius: 5px;
|
|
544
548
|
margin-top: 10px;
|
|
549
|
+
position: relative;
|
|
545
550
|
}
|
|
546
551
|
.w-e-text-container [data-slate-editor] table {
|
|
547
552
|
border-collapse: collapse;
|
|
553
|
+
table-layout: fixed;
|
|
554
|
+
/* 选区拖影 */
|
|
548
555
|
}
|
|
549
556
|
.w-e-text-container [data-slate-editor] table td,
|
|
550
557
|
.w-e-text-container [data-slate-editor] table th {
|
|
@@ -553,17 +560,76 @@ body .w-e-modal * {
|
|
|
553
560
|
min-width: 30px;
|
|
554
561
|
text-align: left;
|
|
555
562
|
line-height: 1.5;
|
|
563
|
+
/* 强制换行,table column 宽度必须拖动增大 */
|
|
564
|
+
overflow: hidden;
|
|
565
|
+
overflow-wrap: break-word;
|
|
566
|
+
word-break: break-all;
|
|
567
|
+
white-space: pre-wrap;
|
|
556
568
|
}
|
|
557
569
|
.w-e-text-container [data-slate-editor] table th {
|
|
558
570
|
background-color: var(--w-e-textarea-slight-bg-color);
|
|
559
571
|
text-align: center;
|
|
560
572
|
font-weight: bold;
|
|
561
573
|
}
|
|
574
|
+
.w-e-text-container [data-slate-editor] table td.w-e-selected,
|
|
575
|
+
.w-e-text-container [data-slate-editor] table th.w-e-selected {
|
|
576
|
+
background-color: rgba(20, 86, 240, 0.18);
|
|
577
|
+
}
|
|
578
|
+
.w-e-text-container [data-slate-editor] table.table-selection-none *::-moz-selection {
|
|
579
|
+
background: none;
|
|
580
|
+
}
|
|
581
|
+
.w-e-text-container [data-slate-editor] table.table-selection-none *::selection {
|
|
582
|
+
background: none;
|
|
583
|
+
}
|
|
584
|
+
.w-e-text-container [data-slate-editor] .column-resizer {
|
|
585
|
+
position: absolute;
|
|
586
|
+
display: flex;
|
|
587
|
+
top: 10px;
|
|
588
|
+
left: 11px;
|
|
589
|
+
width: 0;
|
|
590
|
+
height: 0;
|
|
591
|
+
z-index: 1;
|
|
592
|
+
}
|
|
593
|
+
.w-e-text-container [data-slate-editor] .column-resizer .column-resizer-item {
|
|
594
|
+
position: relative;
|
|
595
|
+
}
|
|
596
|
+
.w-e-text-container [data-slate-editor] .resizer-line-hotzone {
|
|
597
|
+
cursor: col-resize;
|
|
598
|
+
position: absolute;
|
|
599
|
+
width: 10px;
|
|
600
|
+
right: -3px;
|
|
601
|
+
visibility: hidden;
|
|
602
|
+
opacity: 0;
|
|
603
|
+
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
604
|
+
}
|
|
605
|
+
.w-e-text-container [data-slate-editor] .resizer-line-hotzone .resizer-line {
|
|
606
|
+
height: 100%;
|
|
607
|
+
width: 2px;
|
|
608
|
+
margin-left: 5px;
|
|
609
|
+
background: rgba(20, 86, 240, 0.8);
|
|
610
|
+
-webkit-user-select: none;
|
|
611
|
+
-moz-user-select: none;
|
|
612
|
+
user-select: none;
|
|
613
|
+
}
|
|
614
|
+
.w-e-text-container [data-slate-editor] .resizer-line-hotzone.visible {
|
|
615
|
+
visibility: visible;
|
|
616
|
+
}
|
|
617
|
+
.w-e-text-container [data-slate-editor] .resizer-line-hotzone.highlight {
|
|
618
|
+
opacity: 1;
|
|
619
|
+
}
|
|
562
620
|
.w-e-panel-content-table {
|
|
563
621
|
background-color: var(--w-e-toolbar-bg-color);
|
|
564
622
|
}
|
|
565
623
|
.w-e-panel-content-table table {
|
|
566
624
|
border-collapse: collapse;
|
|
625
|
+
table-layout: fixed;
|
|
626
|
+
}
|
|
627
|
+
.w-e-panel-content-table th,
|
|
628
|
+
.w-e-panel-content-table td {
|
|
629
|
+
overflow: hidden;
|
|
630
|
+
overflow-wrap: break-word;
|
|
631
|
+
word-break: break-all;
|
|
632
|
+
white-space: pre-wrap;
|
|
567
633
|
}
|
|
568
634
|
.w-e-panel-content-table td {
|
|
569
635
|
border: 1px solid var(--w-e-toolbar-border-color);
|