@seafile/sdoc-editor 3.0.21 → 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 serviceUrl = _context2["default"].getSetting('serviceUrl');
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "3.0.21",
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": "57e6e59b83ecace62328d63c8bd38cda16512106"
74
+ "gitHead": "a56bac1f2707a4c7ff60b1044367d6a8a3c90acb"
75
75
  }