@seafile/seafile-editor 2.0.18 → 2.0.19
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.
|
@@ -15,9 +15,9 @@ var _eventTypes = require("../../../constants/event-types");
|
|
|
15
15
|
require("./index.css");
|
|
16
16
|
const MoreMenu = _ref => {
|
|
17
17
|
let {
|
|
18
|
-
className
|
|
18
|
+
className,
|
|
19
19
|
disabled,
|
|
20
|
-
isRichEditor
|
|
20
|
+
isRichEditor,
|
|
21
21
|
children
|
|
22
22
|
} = _ref;
|
|
23
23
|
const popoverRef = (0, _react.useRef)(null);
|
|
@@ -60,4 +60,8 @@ const MoreMenu = _ref => {
|
|
|
60
60
|
ref: popoverRef
|
|
61
61
|
}, children));
|
|
62
62
|
};
|
|
63
|
+
MoreMenu.defaultProps = {
|
|
64
|
+
isRichEditor: true,
|
|
65
|
+
className: 'sf-menu-group-item'
|
|
66
|
+
};
|
|
63
67
|
var _default = exports.default = MoreMenu;
|
|
@@ -17,7 +17,7 @@ const ImageMenuInsertInternetDialog = _ref => {
|
|
|
17
17
|
let {
|
|
18
18
|
editor,
|
|
19
19
|
onToggleImageDialog,
|
|
20
|
-
className
|
|
20
|
+
className
|
|
21
21
|
} = _ref;
|
|
22
22
|
const [imageUrl, setSetImageUrl] = (0, _react.useState)('');
|
|
23
23
|
const imgUrlInputRef = (0, _react.useRef)(null);
|
|
@@ -77,4 +77,7 @@ const ImageMenuInsertInternetDialog = _ref => {
|
|
|
77
77
|
onClick: handleSubmit
|
|
78
78
|
}, t('Submit'))));
|
|
79
79
|
};
|
|
80
|
+
ImageMenuInsertInternetDialog.defaultProps = {
|
|
81
|
+
classname: ''
|
|
82
|
+
};
|
|
80
83
|
var _default = exports.default = ImageMenuInsertInternetDialog;
|
|
@@ -25,13 +25,7 @@ const slateToMdString = value => {
|
|
|
25
25
|
if (value.length === 1) {
|
|
26
26
|
const child = value[0];
|
|
27
27
|
if (child.type === _constants.PARAGRAPH && _slate.Node.string(child).length === 0) {
|
|
28
|
-
return
|
|
29
|
-
type: 'paragraph',
|
|
30
|
-
children: [{
|
|
31
|
-
type: 'text',
|
|
32
|
-
value: ''
|
|
33
|
-
}]
|
|
34
|
-
}];
|
|
28
|
+
return '';
|
|
35
29
|
}
|
|
36
30
|
}
|
|
37
31
|
|