@seafile/sdoc-editor 1.0.206-test0.4.9 → 1.0.206-test0.5.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.
@@ -96,13 +96,13 @@ const insertVideo = function (editor, videoFiles, srcList, selection) {
96
96
  if (isInsertVideoMenuDisabled(editor)) return;
97
97
  }
98
98
  const videoInfo = {
99
- video_name: videoFiles[0].name || null,
100
- video_size: videoFiles[0].size || null,
99
+ name: videoFiles[0].name || null,
100
+ size: videoFiles[0].size || null,
101
101
  is_embeddable_link: videoFiles[0].isEmbeddableLink || false
102
102
  };
103
103
  let videoNodes;
104
104
  // Return when embedding an invalid youtube, tencent or bilibili video url
105
- if (videoInfo.isEmbeddableLink) {
105
+ if (videoInfo.is_embeddable_link) {
106
106
  const parsedSrc = parseVideoLink(srcList[0]);
107
107
  if (!parsedSrc) return;
108
108
  videoNodes = generateVideoNode(parsedSrc, videoInfo);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.206-test0.4.9",
3
+ "version": "1.0.206-test0.5.0",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",