@seafile/comment-editor 0.0.1-alpha.70 → 0.0.1-alpha.72
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.
|
@@ -30,10 +30,11 @@ var _slateToMd = _interopRequireDefault(require("../slate-convert/slate-to-md"))
|
|
|
30
30
|
var _eventBus = _interopRequireDefault(require("../utils/event-bus"));
|
|
31
31
|
var _eventHandler = _interopRequireDefault(require("../utils/event-handler"));
|
|
32
32
|
require("./comment-editor.css");
|
|
33
|
-
const getSubmitTip = (type, content) => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
33
|
+
// const getSubmitTip = (type, content) => {
|
|
34
|
+
// if (content) return 'Save';
|
|
35
|
+
// return type === 'comment' ? 'Comment' : 'Reply';
|
|
36
|
+
// };
|
|
37
|
+
|
|
37
38
|
const DEFAULT_PLACEHOLDER = 'Enter_comment_shift_enter_for_new_line_Enter_to_send';
|
|
38
39
|
const CommentEditor = _ref => {
|
|
39
40
|
let {
|
|
@@ -46,17 +47,15 @@ const CommentEditor = _ref => {
|
|
|
46
47
|
toolMenus = ['text_style', _constants2.BLOCKQUOTE, _constants2.UNORDERED_LIST, _constants2.ORDERED_LIST, _constants2.LINK, _constants2.IMAGE],
|
|
47
48
|
closePanel
|
|
48
49
|
} = _ref;
|
|
49
|
-
const commentWrapperRef =
|
|
50
|
-
const {
|
|
51
|
-
t
|
|
52
|
-
} = (0, _reactI18next.useTranslation)('sdoc-editor');
|
|
50
|
+
// const commentWrapperRef = useRef();
|
|
51
|
+
// const { t } = useTranslation('sdoc-editor');
|
|
53
52
|
const {
|
|
54
53
|
className,
|
|
55
54
|
userInfo,
|
|
56
55
|
type,
|
|
57
56
|
addParticipants
|
|
58
57
|
} = (0, _useComment.useComment)();
|
|
59
|
-
const submitTip =
|
|
58
|
+
// const submitTip = useMemo(() => getSubmitTip(type, content), [content, type]);
|
|
60
59
|
|
|
61
60
|
// const document = useMemo(() => {
|
|
62
61
|
// const cursor = {};
|