@wangeditor-next/editor 5.6.35 → 5.6.37
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/dist/core/src/config/interface.d.ts +3 -4
- package/dist/core/src/upload/interface.d.ts +13 -5
- package/dist/css/style.css +9 -9
- package/dist/index.js +853 -293
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/table-module/src/module/menu/MergeCell.d.ts +0 -1
- package/dist/table-module/src/module/pre-parse-html.d.ts +1 -1
- package/dist/video-module/src/module/menu/index.d.ts +1 -1
- package/package.json +8 -8
|
@@ -90,11 +90,10 @@ interface IInsertVideoConfig {
|
|
|
90
90
|
checkVideo: (src: string, poster: string) => string | boolean | undefined;
|
|
91
91
|
parseVideoSrc: (url: string) => string;
|
|
92
92
|
}
|
|
93
|
-
export
|
|
94
|
-
|
|
95
|
-
export interface IUploadImageConfig extends IUploadConfig {
|
|
93
|
+
export type IUploadVideoConfig = IUploadConfig;
|
|
94
|
+
export type IUploadImageConfig = IUploadConfig & {
|
|
96
95
|
base64LimitSize: number;
|
|
97
|
-
}
|
|
96
|
+
};
|
|
98
97
|
interface ICodeLangConfig {
|
|
99
98
|
codeLangs: {
|
|
100
99
|
text: string;
|
|
@@ -7,11 +7,7 @@ type FilesType = {
|
|
|
7
7
|
[key: string]: UppyFile<{}, {}>;
|
|
8
8
|
};
|
|
9
9
|
type InsertFn = (src: string, poster?: string, alt?: string, href?: string) => void | Promise<void>;
|
|
10
|
-
|
|
11
|
-
* 配置参考 https://uppy.io/docs/uppy/
|
|
12
|
-
*/
|
|
13
|
-
export interface IUploadConfig {
|
|
14
|
-
server: string;
|
|
10
|
+
interface IBaseUploadConfig {
|
|
15
11
|
fieldName?: string;
|
|
16
12
|
maxFileSize?: number;
|
|
17
13
|
maxNumberOfFiles?: number;
|
|
@@ -32,4 +28,16 @@ export interface IUploadConfig {
|
|
|
32
28
|
uppyConfig?: Record<string, any>;
|
|
33
29
|
xhrConfig?: Record<string, any>;
|
|
34
30
|
}
|
|
31
|
+
interface IUploadConfigWithCustomUpload extends IBaseUploadConfig {
|
|
32
|
+
server?: string;
|
|
33
|
+
customUpload: (files: File, insertFn: InsertFn) => void;
|
|
34
|
+
}
|
|
35
|
+
interface IUploadConfigWithoutCustomUpload extends IBaseUploadConfig {
|
|
36
|
+
server: string;
|
|
37
|
+
customUpload?: never;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 配置参考 https://uppy.io/docs/uppy/
|
|
41
|
+
*/
|
|
42
|
+
export type IUploadConfig = IUploadConfigWithCustomUpload | IUploadConfigWithoutCustomUpload;
|
|
35
43
|
export {};
|
package/dist/css/style.css
CHANGED
|
@@ -541,7 +541,7 @@ body .w-e-modal * {
|
|
|
541
541
|
|
|
542
542
|
|
|
543
543
|
|
|
544
|
-
.w-e-text-container [data-slate-editor] .table-container{border
|
|
544
|
+
.w-e-text-container [data-slate-editor] .table-container{border-radius:0;margin-top:10px;overflow-x:auto;padding:0;position:relative;width:100%}.w-e-text-container [data-slate-editor] table{border-collapse:collapse;table-layout:fixed}.w-e-text-container [data-slate-editor] table td,.w-e-text-container [data-slate-editor] table th{border:1px solid var(--w-e-textarea-border-color);line-height:1.5;min-width:30px;overflow:hidden;overflow-wrap:break-word;padding:3px 5px;white-space:pre-wrap;word-break:break-all}.w-e-text-container [data-slate-editor] table th{background-color:var(--w-e-textarea-slight-bg-color);font-weight:700;text-align:center}.w-e-text-container [data-slate-editor] table td.w-e-selected,.w-e-text-container [data-slate-editor] table th.w-e-selected{background-color:rgba(20,86,240,.18)}.w-e-text-container [data-slate-editor] table.table-selection-none ::-moz-selection{background:none}.w-e-text-container [data-slate-editor] table.table-selection-none ::selection{background:none}.w-e-text-container [data-slate-editor] .column-resizer{display:flex;height:0;left:0;position:absolute;top:0;width:0;z-index:1}.w-e-text-container [data-slate-editor] .column-resizer .column-resizer-item{position:relative}.w-e-text-container [data-slate-editor] .resizer-line-hotzone{cursor:col-resize;opacity:0;position:absolute;right:0;transition:opacity .2s ease,visibility .2s ease;visibility:hidden;width:6px}.w-e-text-container [data-slate-editor] .resizer-line-hotzone .resizer-line{background:rgba(20,86,240,.8);height:100%;margin-left:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:2px}.w-e-text-container [data-slate-editor] .resizer-line-hotzone.visible{visibility:visible}.w-e-text-container [data-slate-editor] .resizer-line-hotzone.highlight{opacity:1}.w-e-panel-content-table{background-color:var(--w-e-toolbar-bg-color)}.w-e-panel-content-table table{border-collapse:collapse;table-layout:fixed}.w-e-panel-content-table td,.w-e-panel-content-table th{overflow:hidden;overflow-wrap:break-word;white-space:pre-wrap;word-break:break-all}.w-e-panel-content-table td{border:1px solid var(--w-e-toolbar-border-color);cursor:pointer;height:15px;padding:3px 5px;width:20px}.w-e-panel-content-table td.active{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-modal .babel-container span.babel-container-border{display:flex}.w-e-modal .babel-container span.babel-container-border>*{border:1px solid var(--w-e-modal-button-border-color);border-radius:2px;height:28px}.w-e-modal .babel-container span.babel-container-border select{width:114px}.w-e-modal .babel-container span.babel-container-border>:nth-child(n+2){margin-left:8px}.w-e-modal .babel-container span.babel-container-border input:nth-child(3){width:100px}.w-e-modal .babel-container span.babel-container-background input{width:60px}.w-e-modal .babel-container .color-group,.w-e-modal .babel-container span.babel-container-algin select,.w-e-modal .babel-container span.babel-container-background input{border:1px solid var(--w-e-modal-button-border-color);border-radius:2px;height:28px}.w-e-modal .babel-container .color-group{cursor:pointer;position:relative;width:28px}.w-e-modal .babel-container .color-group .w-e-drop-panel{margin-top:28px}.w-e-modal .babel-container .color-group-block{display:block;height:80%;margin:10%;width:80%}.w-e-modal .babel-container .color-group-block svg{height:20px;margin:1px 0;width:20px}
|
|
545
545
|
.w-e-text-container [data-slate-editor] {
|
|
546
546
|
/* 干掉 Chrome 默认选区样式*/
|
|
547
547
|
/* 拖动 Style */
|
|
@@ -549,9 +549,8 @@ body .w-e-modal * {
|
|
|
549
549
|
.w-e-text-container [data-slate-editor] .table-container {
|
|
550
550
|
width: 100%;
|
|
551
551
|
overflow-x: auto;
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
border-radius: 5px;
|
|
552
|
+
padding: 0px;
|
|
553
|
+
border-radius: 0px;
|
|
555
554
|
margin-top: 10px;
|
|
556
555
|
position: relative;
|
|
557
556
|
}
|
|
@@ -590,8 +589,8 @@ body .w-e-modal * {
|
|
|
590
589
|
.w-e-text-container [data-slate-editor] .column-resizer {
|
|
591
590
|
position: absolute;
|
|
592
591
|
display: flex;
|
|
593
|
-
top:
|
|
594
|
-
left:
|
|
592
|
+
top: 0px;
|
|
593
|
+
left: 0px;
|
|
595
594
|
width: 0;
|
|
596
595
|
height: 0;
|
|
597
596
|
z-index: 1;
|
|
@@ -602,8 +601,8 @@ body .w-e-modal * {
|
|
|
602
601
|
.w-e-text-container [data-slate-editor] .resizer-line-hotzone {
|
|
603
602
|
cursor: col-resize;
|
|
604
603
|
position: absolute;
|
|
605
|
-
width:
|
|
606
|
-
right:
|
|
604
|
+
width: 6px;
|
|
605
|
+
right: 0px;
|
|
607
606
|
visibility: hidden;
|
|
608
607
|
opacity: 0;
|
|
609
608
|
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
@@ -698,7 +697,7 @@ body .w-e-modal * {
|
|
|
698
697
|
margin: 1px 0px;
|
|
699
698
|
}
|
|
700
699
|
|
|
701
|
-
.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;padding:10px 0;text-align:center}
|
|
700
|
+
.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;overflow:auto;padding:10px 0;text-align:center}
|
|
702
701
|
.w-e-textarea-video-container {
|
|
703
702
|
text-align: center;
|
|
704
703
|
border: 1px dashed var(--w-e-textarea-border-color);
|
|
@@ -706,6 +705,7 @@ body .w-e-modal * {
|
|
|
706
705
|
margin: 0 auto;
|
|
707
706
|
margin-top: 10px;
|
|
708
707
|
border-radius: 5px;
|
|
708
|
+
overflow: auto;
|
|
709
709
|
background-position: 0px 0px, 10px 10px;
|
|
710
710
|
background-size: 20px 20px;
|
|
711
711
|
background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee 100%), linear-gradient(45deg, #eee 25%, white 25%, white 75%, #eee 75%, #eee 100%);
|