@wangeditor-next/editor 5.3.15-experimental.22 → 5.3.15-experimental.23.22
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/index.esm.js +1 -4
- package/dist/index.js +1 -4
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -34630,7 +34630,6 @@ var TableCursor = {
|
|
|
34630
34630
|
};
|
|
34631
34631
|
|
|
34632
34632
|
function withSelection(editor) {
|
|
34633
|
-
var e = editor;
|
|
34634
34633
|
var apply = editor.apply;
|
|
34635
34634
|
editor.apply = function (op) {
|
|
34636
34635
|
if (!Operation.isSelectionOperation(op) || !op.newProperties) {
|
|
@@ -34641,7 +34640,6 @@ function withSelection(editor) {
|
|
|
34641
34640
|
var selection = __assign$3(__assign$3({}, editor.selection), op.newProperties);
|
|
34642
34641
|
if (!Range.isRange(selection)) {
|
|
34643
34642
|
TableCursor.unselect(editor);
|
|
34644
|
-
e.deselect();
|
|
34645
34643
|
return apply(op);
|
|
34646
34644
|
}
|
|
34647
34645
|
var _a = __read$3(Editor.nodes(editor, {
|
|
@@ -34653,14 +34651,13 @@ function withSelection(editor) {
|
|
|
34653
34651
|
at: Range.end(selection),
|
|
34654
34652
|
}), 1), toEntry = _b[0];
|
|
34655
34653
|
if (!fromEntry || !toEntry) {
|
|
34656
|
-
|
|
34654
|
+
TableCursor.unselect(editor);
|
|
34657
34655
|
return apply(op);
|
|
34658
34656
|
}
|
|
34659
34657
|
var _c = __read$3(fromEntry, 2), fromPath = _c[1];
|
|
34660
34658
|
var _d = __read$3(toEntry, 2), toPath = _d[1];
|
|
34661
34659
|
if (Path.equals(fromPath, toPath) || !hasCommon(editor, [fromPath, toPath], 'table')) {
|
|
34662
34660
|
TableCursor.unselect(editor);
|
|
34663
|
-
e.deselect();
|
|
34664
34661
|
return apply(op);
|
|
34665
34662
|
}
|
|
34666
34663
|
// TODO: perf: could be improved by passing a Span [fromPath, toPath]
|
package/dist/index.js
CHANGED
|
@@ -39001,7 +39001,6 @@
|
|
|
39001
39001
|
};
|
|
39002
39002
|
|
|
39003
39003
|
function withSelection(editor) {
|
|
39004
|
-
var e = editor;
|
|
39005
39004
|
var apply = editor.apply;
|
|
39006
39005
|
editor.apply = function (op) {
|
|
39007
39006
|
if (!slate.Operation.isSelectionOperation(op) || !op.newProperties) {
|
|
@@ -39012,7 +39011,6 @@
|
|
|
39012
39011
|
var selection = __assign(__assign({}, editor.selection), op.newProperties);
|
|
39013
39012
|
if (!slate.Range.isRange(selection)) {
|
|
39014
39013
|
TableCursor.unselect(editor);
|
|
39015
|
-
e.deselect();
|
|
39016
39014
|
return apply(op);
|
|
39017
39015
|
}
|
|
39018
39016
|
var _a = __read(slate.Editor.nodes(editor, {
|
|
@@ -39024,14 +39022,13 @@
|
|
|
39024
39022
|
at: slate.Range.end(selection),
|
|
39025
39023
|
}), 1), toEntry = _b[0];
|
|
39026
39024
|
if (!fromEntry || !toEntry) {
|
|
39027
|
-
|
|
39025
|
+
TableCursor.unselect(editor);
|
|
39028
39026
|
return apply(op);
|
|
39029
39027
|
}
|
|
39030
39028
|
var _c = __read(fromEntry, 2), fromPath = _c[1];
|
|
39031
39029
|
var _d = __read(toEntry, 2), toPath = _d[1];
|
|
39032
39030
|
if (slate.Path.equals(fromPath, toPath) || !hasCommon(editor, [fromPath, toPath], 'table')) {
|
|
39033
39031
|
TableCursor.unselect(editor);
|
|
39034
|
-
e.deselect();
|
|
39035
39032
|
return apply(op);
|
|
39036
39033
|
}
|
|
39037
39034
|
// TODO: perf: could be improved by passing a Span [fromPath, toPath]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/editor",
|
|
3
|
-
"version": "5.3.15-experimental.22+
|
|
3
|
+
"version": "5.3.15-experimental.23.22+d2d1f1b0",
|
|
4
4
|
"description": "Web rich text editor, Web 富文本编辑器",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wangeditor",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@wangeditor-next/code-highlight": "^1.2.1",
|
|
55
55
|
"@wangeditor-next/core": "^1.5.6",
|
|
56
56
|
"@wangeditor-next/list-module": "^1.1.5",
|
|
57
|
-
"@wangeditor-next/table-module": "^1.3.9-experimental.22+
|
|
57
|
+
"@wangeditor-next/table-module": "^1.3.9-experimental.23.22+d2d1f1b0",
|
|
58
58
|
"@wangeditor-next/upload-image-module": "^1.1.2",
|
|
59
59
|
"@wangeditor-next/video-module": "^1.3.4",
|
|
60
60
|
"dom7": "^3.0.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"slate": "^0.72.0",
|
|
71
71
|
"snabbdom": "^3.1.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "d2d1f1b0328b8dbe3f111ba3fbc0b48d4fe53e7d"
|
|
74
74
|
}
|