@seafile/sdoc-editor 1.0.206-test0.3.0 → 1.0.206-test0.3.1
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.
|
@@ -89,7 +89,7 @@ const insertVideo = function (editor, videoFiles, srcList, selection) {
|
|
|
89
89
|
let videoNodes;
|
|
90
90
|
// Parse youtube and tencent video url when embed thirdPlatform link
|
|
91
91
|
if (Array.isArray(videoFiles) && (_videoFiles$ = videoFiles[0]) !== null && _videoFiles$ !== void 0 && _videoFiles$.isEmbeddableLink) {
|
|
92
|
-
const parsedSrc = parseVideoLink(srcList[0]);
|
|
92
|
+
const [parsedSrc] = parseVideoLink(srcList[0]);
|
|
93
93
|
if (!parsedSrc) return;
|
|
94
94
|
videoNodes = generateVideoNode(parsedSrc, videoFiles);
|
|
95
95
|
} else {
|