@seafile/sdoc-editor 1.0.206-test0.3.2 → 1.0.206-test0.3.3
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.
|
@@ -91,13 +91,15 @@ const insertVideo = function (editor, videoFiles, srcList, selection) {
|
|
|
91
91
|
if (Array.isArray(videoFiles) && (_videoFiles$ = videoFiles[0]) !== null && _videoFiles$ !== void 0 && _videoFiles$.isEmbeddableLink) {
|
|
92
92
|
const parsedSrc = parseVideoLink(srcList[0]);
|
|
93
93
|
if (!parsedSrc) return;
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
videoNodes = [parsedSrc].map(src => {
|
|
95
|
+
return generateVideoNode(src, videoFiles);
|
|
96
|
+
});
|
|
96
97
|
} else {
|
|
97
98
|
videoNodes = srcList.map(src => {
|
|
98
99
|
return generateVideoNode(src, videoFiles);
|
|
99
100
|
});
|
|
100
101
|
}
|
|
102
|
+
console.log(videoNodes);
|
|
101
103
|
const validSelection = selection || editor.selection;
|
|
102
104
|
let path = _slate.Editor.path(editor, validSelection);
|
|
103
105
|
if (position === _constants.INSERT_POSITION.AFTER) {
|