@wangeditor-next/editor 5.3.12-alpha.1 → 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/LICENSE +21 -21
- package/dist/index.esm.js +8 -6
- package/dist/index.js +8 -6
- package/package.json +6 -6
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/index.esm.js
CHANGED
|
@@ -18515,9 +18515,14 @@ var DomEditor = {
|
|
|
18515
18515
|
}
|
|
18516
18516
|
return (
|
|
18517
18517
|
// 祖先节点中包括 data-slate-editor 属性,即 textarea
|
|
18518
|
-
targetEl.closest("[data-slate-editor]") === editorEl &&
|
|
18518
|
+
(targetEl.closest("[data-slate-editor]") === editorEl &&
|
|
18519
18519
|
// 通过参数 editable 控制开启是否验证是可编辑元素或零宽字符
|
|
18520
|
-
|
|
18520
|
+
// 补全 data-slate-string 可参考本文代码
|
|
18521
|
+
//(data-slate-zero-width、data-slate-string)判断一起出现,唯独此处欠缺,补全
|
|
18522
|
+
(!editable ||
|
|
18523
|
+
targetEl.isContentEditable ||
|
|
18524
|
+
!!targetEl.getAttribute('data-slate-zero-width'))) ||
|
|
18525
|
+
!!targetEl.getAttribute('data-slate-string'));
|
|
18521
18526
|
},
|
|
18522
18527
|
/**
|
|
18523
18528
|
* Find a native DOM range from a Slate `range`.
|
|
@@ -22093,9 +22098,6 @@ function DOMSelectionToEditor(textarea, editor) {
|
|
|
22093
22098
|
});
|
|
22094
22099
|
Transforms.select(editor, range);
|
|
22095
22100
|
}
|
|
22096
|
-
else {
|
|
22097
|
-
Transforms.deselect(editor);
|
|
22098
|
-
}
|
|
22099
22101
|
}
|
|
22100
22102
|
|
|
22101
22103
|
/**
|
|
@@ -34637,7 +34639,7 @@ function withSelection(editor) {
|
|
|
34637
34639
|
at: Range.end(selection),
|
|
34638
34640
|
}), 1), toEntry = _b[0];
|
|
34639
34641
|
if (!fromEntry || !toEntry) {
|
|
34640
|
-
TableCursor.unselect(editor)
|
|
34642
|
+
// TableCursor.unselect(editor)
|
|
34641
34643
|
return apply(op);
|
|
34642
34644
|
}
|
|
34643
34645
|
var _c = __read$3(fromEntry, 2), fromPath = _c[1];
|
package/dist/index.js
CHANGED
|
@@ -22708,9 +22708,14 @@
|
|
|
22708
22708
|
}
|
|
22709
22709
|
return (
|
|
22710
22710
|
// 祖先节点中包括 data-slate-editor 属性,即 textarea
|
|
22711
|
-
targetEl.closest("[data-slate-editor]") === editorEl &&
|
|
22711
|
+
(targetEl.closest("[data-slate-editor]") === editorEl &&
|
|
22712
22712
|
// 通过参数 editable 控制开启是否验证是可编辑元素或零宽字符
|
|
22713
|
-
|
|
22713
|
+
// 补全 data-slate-string 可参考本文代码
|
|
22714
|
+
//(data-slate-zero-width、data-slate-string)判断一起出现,唯独此处欠缺,补全
|
|
22715
|
+
(!editable ||
|
|
22716
|
+
targetEl.isContentEditable ||
|
|
22717
|
+
!!targetEl.getAttribute('data-slate-zero-width'))) ||
|
|
22718
|
+
!!targetEl.getAttribute('data-slate-string'));
|
|
22714
22719
|
},
|
|
22715
22720
|
/**
|
|
22716
22721
|
* Find a native DOM range from a Slate `range`.
|
|
@@ -26308,9 +26313,6 @@
|
|
|
26308
26313
|
});
|
|
26309
26314
|
slate.Transforms.select(editor, range);
|
|
26310
26315
|
}
|
|
26311
|
-
else {
|
|
26312
|
-
slate.Transforms.deselect(editor);
|
|
26313
|
-
}
|
|
26314
26316
|
}
|
|
26315
26317
|
|
|
26316
26318
|
/**
|
|
@@ -39008,7 +39010,7 @@
|
|
|
39008
39010
|
at: slate.Range.end(selection),
|
|
39009
39011
|
}), 1), toEntry = _b[0];
|
|
39010
39012
|
if (!fromEntry || !toEntry) {
|
|
39011
|
-
TableCursor.unselect(editor)
|
|
39013
|
+
// TableCursor.unselect(editor)
|
|
39012
39014
|
return apply(op);
|
|
39013
39015
|
}
|
|
39014
39016
|
var _c = __read(fromEntry, 2), fromPath = _c[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/editor",
|
|
3
|
-
"version": "5.3.12-
|
|
3
|
+
"version": "5.3.12-experimental.9+d5e332b4",
|
|
4
4
|
"description": "Web rich text editor, Web 富文本编辑器",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wangeditor",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@uppy/xhr-upload": "^2.0.3",
|
|
53
53
|
"@wangeditor-next/basic-modules": "^1.3.5",
|
|
54
54
|
"@wangeditor-next/code-highlight": "^1.2.1",
|
|
55
|
-
"@wangeditor-next/core": "^1.5.6
|
|
56
|
-
"@wangeditor-next/list-module": "^1.1.
|
|
57
|
-
"@wangeditor-next/table-module": "^1.3.
|
|
55
|
+
"@wangeditor-next/core": "^1.5.6",
|
|
56
|
+
"@wangeditor-next/list-module": "^1.1.3",
|
|
57
|
+
"@wangeditor-next/table-module": "^1.3.7-experimental.12+d5e332b4",
|
|
58
58
|
"@wangeditor-next/upload-image-module": "^1.1.1",
|
|
59
|
-
"@wangeditor-next/video-module": "^1.3.
|
|
59
|
+
"@wangeditor-next/video-module": "^1.3.1",
|
|
60
60
|
"dom7": "^3.0.0",
|
|
61
61
|
"is-hotkey": "^0.2.0",
|
|
62
62
|
"lodash.camelcase": "^4.3.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"slate": "^0.72.0",
|
|
71
71
|
"snabbdom": "^3.1.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "d5e332b4ff30f6dbc6ed6b25b08a76dbdea80197"
|
|
74
74
|
}
|