@seafile/sdoc-editor 1.0.206-test0.0.8 → 1.0.206-test0.1.0

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.
@@ -64,6 +64,12 @@ const SelectSdocFileDialog = _ref => {
64
64
  insertSdocFileLinkCallback && insertSdocFileLinkCallback(editor, fileInfo.name, fileInfo.file_uuid);
65
65
  break;
66
66
  case _constants.ELEMENT_TYPE.VIDEO:
67
+ const {
68
+ repoID
69
+ } = window.app.pageOptions;
70
+ const siteRoot = window.app.config.siteRoot;
71
+ const url = `${siteRoot}lib/${repoID}/file${fileInfo.path}`;
72
+ console.log(5, url);
67
73
  // insertVideo && insertVideo(editor, fileInfo.name, fileInfo.path);
68
74
  break;
69
75
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.206-test0.0.8",
3
+ "version": "1.0.206-test0.1.0",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",