@seafile/sdoc-editor 1.0.198-test1.3 → 1.0.198-test1.4

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.
@@ -14,6 +14,7 @@
14
14
  position: absolute;
15
15
  top: 0;
16
16
  left: 0%;
17
+ z-index: 2;
17
18
  }
18
19
 
19
20
  .sdoc-whiteboard-container .tldraw-editor-container {
@@ -26,8 +26,12 @@ const Whiteboard = _ref => {
26
26
  const containerId = `whiteboard-${title}`;
27
27
  // Set default whiteboard readonly as true
28
28
  const readOnly = true;
29
- const handleDoubleClick = () => {
30
- console.log(3434);
29
+ const handleDoubleClick = event => {
30
+ event.preventDefault();
31
+ const url = `/lib/${repoID}/file${filePath}`;
32
+ console.log('doubleclick', url1);
33
+ window.open(url, '_blank');
34
+ return;
31
35
  };
32
36
  (0, _react.useEffect)(() => {
33
37
  const eventBus = _eventBus.default.getInstance();
@@ -39,7 +43,7 @@ const Whiteboard = _ref => {
39
43
  readOnly
40
44
  }
41
45
  });
42
- }, [filePath, repoID]);
46
+ }, [filePath, repoID, readOnly, containerId]);
43
47
  return /*#__PURE__*/_react.default.createElement("div", {
44
48
  className: "sdoc-whiteboard-container",
45
49
  ref: whiteboardRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.198-test1.3",
3
+ "version": "1.0.198-test1.4",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",