@seafile/sdoc-editor 3.0.20 → 3.0.21
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.
|
@@ -52,12 +52,12 @@ var withSocketIO = function withSocketIO(editor, options) {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
// Initially collapse the collaborator‘s selections to start point
|
|
55
|
-
var newCursor =
|
|
56
|
-
var
|
|
57
|
-
anchor =
|
|
58
|
-
focus =
|
|
55
|
+
var newCursor = newEditor.selection;
|
|
56
|
+
var _newEditor$selection = newEditor.selection,
|
|
57
|
+
anchor = _newEditor$selection.anchor,
|
|
58
|
+
focus = _newEditor$selection.focus;
|
|
59
59
|
if (!_slate.Point.equals(anchor, focus)) {
|
|
60
|
-
var frontPoint = _slate.Editor.start(
|
|
60
|
+
var frontPoint = _slate.Editor.start(newEditor, {
|
|
61
61
|
anchor: anchor,
|
|
62
62
|
focus: focus
|
|
63
63
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.21",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "57e6e59b83ecace62328d63c8bd38cda16512106"
|
|
75
75
|
}
|