@wangeditor-next/editor 5.3.12-alpha.2 → 5.3.12-experimental.9
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 +8 -3
- package/LICENSE +21 -21
- package/dist/css/style.css +66 -0
- package/dist/index.esm.js +1452 -2228
- package/dist/index.js +1399 -2175
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,17 @@
|
|
|
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.12-alpha.
|
|
6
|
+
## [5.3.12-alpha.1](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/editor@5.3.12-alpha.0...@wangeditor-next/editor@5.3.12-alpha.1) (2024-07-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @wangeditor-next/editor
|
|
9
|
+
|
|
7
10
|
|
|
8
11
|
|
|
9
|
-
### Reverts
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
|
|
14
|
+
## [5.3.12-alpha.0](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/editor@5.3.11...@wangeditor-next/editor@5.3.12-alpha.0) (2024-07-25)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @wangeditor-next/editor
|
|
12
17
|
|
|
13
18
|
|
|
14
19
|
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 - present wangEditor-team
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 - present wangEditor-team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/css/style.css
CHANGED
|
@@ -539,6 +539,10 @@ body .w-e-modal * {
|
|
|
539
539
|
}
|
|
540
540
|
|
|
541
541
|
|
|
542
|
+
.w-e-text-container [data-slate-editor] {
|
|
543
|
+
/* 干掉 Chrome 默认选区样式*/
|
|
544
|
+
/* 拖动 Style */
|
|
545
|
+
}
|
|
542
546
|
.w-e-text-container [data-slate-editor] .table-container {
|
|
543
547
|
width: 100%;
|
|
544
548
|
overflow-x: auto;
|
|
@@ -546,9 +550,12 @@ body .w-e-modal * {
|
|
|
546
550
|
padding: 10px;
|
|
547
551
|
border-radius: 5px;
|
|
548
552
|
margin-top: 10px;
|
|
553
|
+
position: relative;
|
|
549
554
|
}
|
|
550
555
|
.w-e-text-container [data-slate-editor] table {
|
|
551
556
|
border-collapse: collapse;
|
|
557
|
+
table-layout: fixed;
|
|
558
|
+
/* 选区拖影 */
|
|
552
559
|
}
|
|
553
560
|
.w-e-text-container [data-slate-editor] table td,
|
|
554
561
|
.w-e-text-container [data-slate-editor] table th {
|
|
@@ -557,17 +564,76 @@ body .w-e-modal * {
|
|
|
557
564
|
min-width: 30px;
|
|
558
565
|
text-align: left;
|
|
559
566
|
line-height: 1.5;
|
|
567
|
+
/* 强制换行,table column 宽度必须拖动增大 */
|
|
568
|
+
overflow: hidden;
|
|
569
|
+
overflow-wrap: break-word;
|
|
570
|
+
word-break: break-all;
|
|
571
|
+
white-space: pre-wrap;
|
|
560
572
|
}
|
|
561
573
|
.w-e-text-container [data-slate-editor] table th {
|
|
562
574
|
background-color: var(--w-e-textarea-slight-bg-color);
|
|
563
575
|
text-align: center;
|
|
564
576
|
font-weight: bold;
|
|
565
577
|
}
|
|
578
|
+
.w-e-text-container [data-slate-editor] table td.w-e-selected,
|
|
579
|
+
.w-e-text-container [data-slate-editor] table th.w-e-selected {
|
|
580
|
+
background-color: rgba(20, 86, 240, 0.18);
|
|
581
|
+
}
|
|
582
|
+
.w-e-text-container [data-slate-editor] table.table-selection-none *::-moz-selection {
|
|
583
|
+
background: none;
|
|
584
|
+
}
|
|
585
|
+
.w-e-text-container [data-slate-editor] table.table-selection-none *::selection {
|
|
586
|
+
background: none;
|
|
587
|
+
}
|
|
588
|
+
.w-e-text-container [data-slate-editor] .column-resizer {
|
|
589
|
+
position: absolute;
|
|
590
|
+
display: flex;
|
|
591
|
+
top: 10px;
|
|
592
|
+
left: 11px;
|
|
593
|
+
width: 0;
|
|
594
|
+
height: 0;
|
|
595
|
+
z-index: 1;
|
|
596
|
+
}
|
|
597
|
+
.w-e-text-container [data-slate-editor] .column-resizer .column-resizer-item {
|
|
598
|
+
position: relative;
|
|
599
|
+
}
|
|
600
|
+
.w-e-text-container [data-slate-editor] .resizer-line-hotzone {
|
|
601
|
+
cursor: col-resize;
|
|
602
|
+
position: absolute;
|
|
603
|
+
width: 10px;
|
|
604
|
+
right: -3px;
|
|
605
|
+
visibility: hidden;
|
|
606
|
+
opacity: 0;
|
|
607
|
+
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
608
|
+
}
|
|
609
|
+
.w-e-text-container [data-slate-editor] .resizer-line-hotzone .resizer-line {
|
|
610
|
+
height: 100%;
|
|
611
|
+
width: 2px;
|
|
612
|
+
margin-left: 5px;
|
|
613
|
+
background: rgba(20, 86, 240, 0.8);
|
|
614
|
+
-webkit-user-select: none;
|
|
615
|
+
-moz-user-select: none;
|
|
616
|
+
user-select: none;
|
|
617
|
+
}
|
|
618
|
+
.w-e-text-container [data-slate-editor] .resizer-line-hotzone.visible {
|
|
619
|
+
visibility: visible;
|
|
620
|
+
}
|
|
621
|
+
.w-e-text-container [data-slate-editor] .resizer-line-hotzone.highlight {
|
|
622
|
+
opacity: 1;
|
|
623
|
+
}
|
|
566
624
|
.w-e-panel-content-table {
|
|
567
625
|
background-color: var(--w-e-toolbar-bg-color);
|
|
568
626
|
}
|
|
569
627
|
.w-e-panel-content-table table {
|
|
570
628
|
border-collapse: collapse;
|
|
629
|
+
table-layout: fixed;
|
|
630
|
+
}
|
|
631
|
+
.w-e-panel-content-table th,
|
|
632
|
+
.w-e-panel-content-table td {
|
|
633
|
+
overflow: hidden;
|
|
634
|
+
overflow-wrap: break-word;
|
|
635
|
+
word-break: break-all;
|
|
636
|
+
white-space: pre-wrap;
|
|
571
637
|
}
|
|
572
638
|
.w-e-panel-content-table td {
|
|
573
639
|
border: 1px solid var(--w-e-toolbar-border-color);
|