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

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