@seafile/sdoc-editor 2.0.126-test-0.0.8 → 2.0.126-test-0.0.9
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.
|
@@ -84,10 +84,9 @@ var insertWhiteboard = exports.insertWhiteboard = /*#__PURE__*/function () {
|
|
|
84
84
|
}
|
|
85
85
|
return _context.abrupt("return");
|
|
86
86
|
case 4:
|
|
87
|
-
repoID = _context2["default"].getSetting('repoID');
|
|
88
|
-
console.log(44, repoID, filePath);
|
|
87
|
+
repoID = _context2["default"].getSetting('repoID');
|
|
89
88
|
eventBus = _eventBus["default"].getInstance();
|
|
90
|
-
_context.next =
|
|
89
|
+
_context.next = 8;
|
|
91
90
|
return new Promise(function (resolve) {
|
|
92
91
|
eventBus.dispatch(_constants.INTERNAL_EVENT.GENERATE_EXDRAW_READ_ONLY_LINK, {
|
|
93
92
|
repoID: repoID,
|
|
@@ -97,14 +96,14 @@ var insertWhiteboard = exports.insertWhiteboard = /*#__PURE__*/function () {
|
|
|
97
96
|
}
|
|
98
97
|
});
|
|
99
98
|
});
|
|
100
|
-
case
|
|
99
|
+
case 8:
|
|
101
100
|
exdrawReadOnlyLink = _context.sent;
|
|
102
101
|
console.log(44, repoID, filePath, exdrawReadOnlyLink);
|
|
103
102
|
whiteboardNode = generateWhiteboardNode(repoID, filename, filePath, exdrawReadOnlyLink);
|
|
104
103
|
path = (_editor$selection = editor.selection) === null || _editor$selection === void 0 ? void 0 : _editor$selection.anchor.path;
|
|
105
104
|
position = 'after';
|
|
106
105
|
if (!(position === _constants2.INSERT_POSITION.AFTER)) {
|
|
107
|
-
_context.next =
|
|
106
|
+
_context.next = 21;
|
|
108
107
|
break;
|
|
109
108
|
}
|
|
110
109
|
_slate.Transforms.insertNodes(editor, whiteboardNode, {
|
|
@@ -123,7 +122,7 @@ var insertWhiteboard = exports.insertWhiteboard = /*#__PURE__*/function () {
|
|
|
123
122
|
};
|
|
124
123
|
(0, _core.focusEditor)(editor, range);
|
|
125
124
|
return _context.abrupt("return");
|
|
126
|
-
case
|
|
125
|
+
case 21:
|
|
127
126
|
case "end":
|
|
128
127
|
return _context.stop();
|
|
129
128
|
}
|
|
@@ -53,13 +53,9 @@ var Whiteboard = function Whiteboard(_ref) {
|
|
|
53
53
|
className: "sdoc-whiteboard-wrapper"
|
|
54
54
|
}), /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
55
55
|
className: "sdoc-whiteboard-element",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
,
|
|
59
|
-
allowFullScreen: true,
|
|
60
|
-
src: link
|
|
61
|
-
// onLoad={handleVideoLoad}
|
|
62
|
-
,
|
|
56
|
+
sandbox: "",
|
|
57
|
+
title: title,
|
|
58
|
+
src: link,
|
|
63
59
|
style: {
|
|
64
60
|
width: '100%',
|
|
65
61
|
height: '100%',
|