@seafile/sdoc-editor 3.0.20 → 3.0.23
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.
|
@@ -178,7 +178,11 @@ var getImageURL = exports.getImageURL = function getImageURL(data, editor) {
|
|
|
178
178
|
|
|
179
179
|
// copy from others doc
|
|
180
180
|
if (isImageUrlIsFromCopy(url)) return url;
|
|
181
|
-
var
|
|
181
|
+
var isDevelopment = _context2["default"].getSetting('isDevelopment');
|
|
182
|
+
var serviceUrl = _context2["default"].getSetting('siteRoot');
|
|
183
|
+
if (isDevelopment) {
|
|
184
|
+
serviceUrl = _context2["default"].getSetting('serviceUrl');
|
|
185
|
+
}
|
|
182
186
|
var assetsUrl = _context2["default"].getSetting('assetsUrl');
|
|
183
187
|
|
|
184
188
|
// If in sdoc link preview
|
|
@@ -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.23",
|
|
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": "a56bac1f2707a4c7ff60b1044367d6a8a3c90acb"
|
|
75
75
|
}
|