@seafile/sdoc-editor 1.0.70 → 1.0.71
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.
- package/dist/basic-sdk/comment/components/global-comment/index.js +0 -1
- package/dist/basic-sdk/extension/constants/menus-config.js +3 -2
- package/dist/basic-sdk/extension/plugins/image/helpers.js +3 -1
- package/dist/basic-sdk/extension/plugins/index.js +1 -1
- package/dist/basic-sdk/right-panel/resize-width/index.js +2 -4
- package/package.json +1 -1
|
@@ -135,7 +135,6 @@ const GlobalComment = _ref => {
|
|
|
135
135
|
id: "global-comment-list-container",
|
|
136
136
|
className: "sdoc-comment-list-container"
|
|
137
137
|
}, Array.isArray(commentList) && commentList.map(comment => {
|
|
138
|
-
console.log(comment);
|
|
139
138
|
const elementId = comment.detail.element_id;
|
|
140
139
|
const element = elementId !== _constants.DOC_COMMENT_ELEMENT_ID ? (0, _core.getNodeById)(editor.children, elementId) : null;
|
|
141
140
|
const isActive = activeComment && activeComment.id === comment.id;
|
|
@@ -361,10 +361,11 @@ const SIDE_INSERT_MENUS_CONFIG = exports.SIDE_INSERT_MENUS_CONFIG = {
|
|
|
361
361
|
iconClass: 'sdocfont sdoc-header4',
|
|
362
362
|
type: _elementType.HEADER4,
|
|
363
363
|
text: 'Header_four'
|
|
364
|
-
},
|
|
364
|
+
}],
|
|
365
|
+
[_elementType.BLOCKQUOTE]: {
|
|
365
366
|
id: _elementType.BLOCKQUOTE,
|
|
366
367
|
iconClass: 'sdocfont sdoc-quote1',
|
|
367
368
|
type: _elementType.BLOCKQUOTE,
|
|
368
369
|
text: 'Quote'
|
|
369
|
-
}
|
|
370
|
+
}
|
|
370
371
|
};
|
|
@@ -220,11 +220,13 @@ const selectImageWhenSelectPartial = (event, editor, imageNode, isImageSelected)
|
|
|
220
220
|
}
|
|
221
221
|
const isIncludedSelection = _slate.Range.includes(selection, imagePath);
|
|
222
222
|
if (isIncludedSelection) return;
|
|
223
|
+
// When the mouse hovers over an image, the image is selected.
|
|
224
|
+
const nextPath = _slate.Path.next(imagePath.slice(0, imagePath.length - 1));
|
|
223
225
|
const focusRange = {
|
|
224
226
|
...selection,
|
|
225
227
|
focus: {
|
|
226
228
|
offset: 0,
|
|
227
|
-
path:
|
|
229
|
+
path: [...nextPath, 0]
|
|
228
230
|
}
|
|
229
231
|
};
|
|
230
232
|
(0, _core.focusEditor)(editor, focusRange);
|
|
@@ -168,6 +168,6 @@ var _wikiLink = _interopRequireDefault(require("./wiki-link"));
|
|
|
168
168
|
var _seatableColumn = _interopRequireDefault(require("./seatable-column"));
|
|
169
169
|
var _seatableTables = _interopRequireDefault(require("./seatable-tables"));
|
|
170
170
|
const Plugins = [_markdown.default, _html.default, _header.default, _link.default, _blockquote.default, _list.default, _checkList.default, _codeBlock.default, _image.default, _table.default, _textStyle.default, _textAlign.default, _font.default, _sdocLink.default, _paragraph.default, _fileLink.default, _callout.default, _searchReplace.default, _quickInsert.default];
|
|
171
|
-
const WikiPlugins = exports.WikiPlugins = [...Plugins,
|
|
171
|
+
const WikiPlugins = exports.WikiPlugins = [...Plugins, _wikiLink.default];
|
|
172
172
|
const CommentPlugins = exports.CommentPlugins = [_markdown.default, _html.default, _paragraph.default, _textStyle.default, _list.default, _image.default, _link.default, _mention.default, _blockquote.default];
|
|
173
173
|
var _default = exports.default = Plugins;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
9
|
require("./index.css");
|
|
12
10
|
const ResizeWidth = _ref => {
|
|
13
11
|
let {
|
|
@@ -69,9 +67,9 @@ const ResizeWidth = _ref => {
|
|
|
69
67
|
handlerRef.current.addEventListener('mouseleave', onMouseLeave);
|
|
70
68
|
}
|
|
71
69
|
};
|
|
72
|
-
const onMouseOver =
|
|
70
|
+
const onMouseOver = event => {
|
|
73
71
|
setHandlerBarPosition(event);
|
|
74
|
-
}
|
|
72
|
+
};
|
|
75
73
|
const onMouseDown = event => {
|
|
76
74
|
event.preventDefault && event.preventDefault();
|
|
77
75
|
const currDrag = onDragStart(event);
|