@seafile/sdoc-editor 1.0.179 → 1.0.180
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.
|
@@ -29,7 +29,7 @@ const withVideo = editor => {
|
|
|
29
29
|
return isVoid(elem);
|
|
30
30
|
};
|
|
31
31
|
newEditor.onHotKeyDown = event => {
|
|
32
|
-
const [videoNode, path] = (0, _core.getSelectedNodeEntryByType)(editor, _constants.VIDEO);
|
|
32
|
+
const [videoNode, path] = (0, _core.getSelectedNodeEntryByType)(editor, _constants.VIDEO) || [];
|
|
33
33
|
if (path) {
|
|
34
34
|
// Insert empty paragraph node after video when clicking 'enter' on selected video
|
|
35
35
|
if ((0, _isHotkey.default)('enter', event)) {
|