@seafile/comment-editor 0.0.1-alpha.46 → 0.0.1-alpha.48
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.
|
@@ -245,35 +245,7 @@ const CommentEditor = _ref => {
|
|
|
245
245
|
value: {
|
|
246
246
|
scrollRef: commentEditorContainerRef
|
|
247
247
|
}
|
|
248
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
249
|
-
editor: editor,
|
|
250
|
-
value: slateValue,
|
|
251
|
-
onChange: setSlateValue
|
|
252
|
-
}, /*#__PURE__*/_react.default.createElement(_slateReact.Editable, {
|
|
253
|
-
id: "sdoc-editor",
|
|
254
|
-
scrollSelectionIntoView: handleScrollIntoView,
|
|
255
|
-
cursors: cursors,
|
|
256
|
-
renderElement: props => (0, _renderCommentEditorElement.default)({
|
|
257
|
-
...props,
|
|
258
|
-
commentType: type
|
|
259
|
-
}),
|
|
260
|
-
renderLeaf: _extension.renderLeaf,
|
|
261
|
-
onMouseDown: onMouseDown,
|
|
262
|
-
decorate: decorate,
|
|
263
|
-
onCut: eventProxy.onCut,
|
|
264
|
-
onCopy: eventProxy.onCopy,
|
|
265
|
-
onCompositionStart: eventProxy.onCompositionStart,
|
|
266
|
-
onCompositionUpdate: eventProxy.onCompositionUpdate,
|
|
267
|
-
onCompositionEnd: eventProxy.onCompositionEnd,
|
|
268
|
-
onKeyDown: onKeyDown,
|
|
269
|
-
onBeforeInput: eventProxy.onBeforeInput
|
|
270
|
-
})))), /*#__PURE__*/_react.default.createElement(_commentEditorToolbar.default, {
|
|
271
|
-
editor: editor,
|
|
272
|
-
toolMenus: toolMenus,
|
|
273
|
-
onSubmit: onSubmit,
|
|
274
|
-
submitBtnText: t(submitTip),
|
|
275
|
-
onCancel: onCancel
|
|
276
|
-
}))), toolMenus.includes(_constants2.IMAGE) && /*#__PURE__*/_react.default.createElement(_insertElementDialog.default, {
|
|
248
|
+
})))), toolMenus.includes(_constants2.IMAGE) && /*#__PURE__*/_react.default.createElement(_insertElementDialog.default, {
|
|
277
249
|
editor: editor
|
|
278
250
|
}));
|
|
279
251
|
};
|