@seafile/sdoc-editor 1.0.206-test0.4.7 → 1.0.206-test0.4.8
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.
|
@@ -68,7 +68,6 @@ const parseVideoLink = url => {
|
|
|
68
68
|
if (url.includes('v.qq.com')) {
|
|
69
69
|
const vidMatch = url.match(/\/([^\/]+)\.html/);
|
|
70
70
|
const videoUrl = vidMatch !== null && vidMatch !== void 0 && vidMatch[1] ? `https://v.qq.com/txp/iframe/player.html?vid=${vidMatch[1]}` : false;
|
|
71
|
-
console.log(videoUrl);
|
|
72
71
|
return videoUrl;
|
|
73
72
|
}
|
|
74
73
|
|
|
@@ -97,9 +96,9 @@ const insertVideo = function (editor, videoFiles, srcList, selection) {
|
|
|
97
96
|
if (isInsertVideoMenuDisabled(editor)) return;
|
|
98
97
|
}
|
|
99
98
|
const videoInfo = {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
video_name: videoFiles[0].name || null,
|
|
100
|
+
video_size: videoFiles[0].size || null,
|
|
101
|
+
is_Embeddable_Link: videoFiles[0].isEmbeddableLink || false
|
|
103
102
|
};
|
|
104
103
|
let videoNodes;
|
|
105
104
|
// Return when embedding an invalid youtube, tencent or bilibili video url
|
|
@@ -26,7 +26,7 @@ const Video = _ref => {
|
|
|
26
26
|
const [videoStates, setVideoStates] = (0, _react.useState)({});
|
|
27
27
|
const videoName = ((_data$videoInfo = data.videoInfo) === null || _data$videoInfo === void 0 ? void 0 : _data$videoInfo.name) || data.src || null;
|
|
28
28
|
const videoSize = ((_data$videoInfo2 = data.videoInfo) === null || _data$videoInfo2 === void 0 ? void 0 : _data$videoInfo2.size) || null;
|
|
29
|
-
const isEmbeddableLink = ((_data$videoInfo3 = data.videoInfo) === null || _data$videoInfo3 === void 0 ? void 0 : _data$videoInfo3.
|
|
29
|
+
const isEmbeddableLink = ((_data$videoInfo3 = data.videoInfo) === null || _data$videoInfo3 === void 0 ? void 0 : _data$videoInfo3.is_Embeddable_Link) || false;
|
|
30
30
|
const handlePlay = () => {
|
|
31
31
|
setVideoStates(prev => ({
|
|
32
32
|
...prev,
|