@seafile/sdoc-editor 1.0.198-test1.5 → 1.0.198-test1.6

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,7 +30,6 @@ const Whiteboard = _ref => {
30
30
  event.preventDefault();
31
31
  const siteRoot = window.app.config.siteRoot;
32
32
  const url = `${siteRoot}lib/${repoID}/file${filePath}`;
33
- console.log('doubleclick', url);
34
33
  window.open(url, '_blank');
35
34
  return;
36
35
  };
@@ -58,11 +57,16 @@ const Whiteboard = _ref => {
58
57
  };
59
58
  function renderWhiteboard(props, editor) {
60
59
  const {
61
- element
60
+ element,
61
+ children,
62
+ attributes
62
63
  } = props;
63
- console.log(3, props);
64
- return /*#__PURE__*/_react.default.createElement(Whiteboard, {
64
+ return /*#__PURE__*/_react.default.createElement("div", Object.assign({}, attributes, {
65
+ contentEditable: "false",
66
+ suppressContentEditableWarning: true
67
+ }), children, /*#__PURE__*/_react.default.createElement(Whiteboard, {
65
68
  editor: editor,
66
- element: element
67
- });
69
+ element: element,
70
+ contentEditable: "false"
71
+ }));
68
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.198-test1.5",
3
+ "version": "1.0.198-test1.6",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",