@seafile/seafile-sdoc-editor 3.0.71 → 3.0.72
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.
|
@@ -62,6 +62,7 @@ var SdocWikiEditor = function SdocWikiEditor(_ref) {
|
|
|
62
62
|
var focusEditor = function focusEditor(_ref2) {
|
|
63
63
|
var key = _ref2.key;
|
|
64
64
|
if (['ArrowRight', 'ArrowDown'].includes(key)) {
|
|
65
|
+
_slateReact.ReactEditor.focus(validEditor);
|
|
65
66
|
var _Editor$nodes = _slate.Editor.nodes(validEditor, {
|
|
66
67
|
universal: true,
|
|
67
68
|
match: function match(n) {
|
|
@@ -70,11 +71,10 @@ var SdocWikiEditor = function SdocWikiEditor(_ref) {
|
|
|
70
71
|
}),
|
|
71
72
|
_Editor$nodes2 = (0, _slicedToArray2["default"])(_Editor$nodes, 1),
|
|
72
73
|
nodeEntry = _Editor$nodes2[0];
|
|
74
|
+
if (!nodeEntry) return;
|
|
73
75
|
var _nodeEntry = (0, _slicedToArray2["default"])(nodeEntry, 2),
|
|
74
76
|
path = _nodeEntry[1];
|
|
75
|
-
_slateReact.ReactEditor.focus(validEditor);
|
|
76
77
|
_slate.Transforms.select(validEditor, _slate.Editor.start(validEditor, path));
|
|
77
|
-
_slateReact.ReactEditor.focus(validEditor);
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
(0, _react.useEffect)(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/seafile-sdoc-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.72",
|
|
4
4
|
"author": "shuntian <978987373@qq.com>",
|
|
5
5
|
"homepage": "https://github.com/seafileltd/sea-sdoc-editor#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"description": "",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@seafile/print-js": "1.6.6",
|
|
32
|
-
"@seafile/sdoc-editor": "^3.0.
|
|
32
|
+
"@seafile/sdoc-editor": "^3.0.72",
|
|
33
33
|
"classnames": "2.3.2",
|
|
34
34
|
"dayjs": "1.10.7"
|
|
35
35
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "4501139e3f681c75bb68f8a1a2b235788c7b2c9b"
|
|
49
49
|
}
|