@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
|
-
|
|
100
|
-
|
|
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.
|
|
105
|
+
if (videoInfo.is_embeddable_link) {
|
|
106
106
|
const parsedSrc = parseVideoLink(srcList[0]);
|
|
107
107
|
if (!parsedSrc) return;
|
|
108
108
|
videoNodes = generateVideoNode(parsedSrc, videoInfo);
|