@seafile/sdoc-editor 1.0.198-test2.7 → 1.0.198-test2.8

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.
@@ -29,8 +29,11 @@ const withWhiteboard = editor => {
29
29
  return isVoid(elem);
30
30
  };
31
31
  newEditor.onHotKeyDown = event => {
32
+ console.log(77);
32
33
  const [whiteboardNode, path] = (0, _core.getSelectedNodeEntryByType)(editor, _constants.WHITEBOARD) || [];
34
+ console.log(whiteboardNode, path);
33
35
  if (path) {
36
+ console.log(55, event);
34
37
  // Insert empty paragraph node after whiteboard when clicking 'enter' on selected whiteboard
35
38
  if ((0, _isHotkey.default)('enter', event)) {
36
39
  event.preventDefault();
@@ -52,7 +52,8 @@ const Whiteboard = _ref => {
52
52
  'isSelected': isSelected
53
53
  }),
54
54
  ref: whiteboardRef,
55
- onDoubleClick: handleDoubleClick
55
+ onDoubleClick: handleDoubleClick,
56
+ scrolling: "no"
56
57
  }, /*#__PURE__*/_react.default.createElement("div", {
57
58
  className: "sodoc-whiteboard-title"
58
59
  }, title), /*#__PURE__*/_react.default.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.198-test2.7",
3
+ "version": "1.0.198-test2.8",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",