@seafile/sdoc-editor 1.0.198-test2.4 → 1.0.198-test2.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.
@@ -54,6 +54,9 @@ const SelectSdocFileDialog = _ref => {
54
54
  insertFileLinkCallback,
55
55
  insertSdocFileLinkCallback
56
56
  } = insertLinkCallback || {};
57
+ const {
58
+ insertWhiteboard
59
+ } = insertWhiteboardFile || {};
57
60
  switch (dialogType) {
58
61
  case _constants.ELEMENT_TYPE.FILE_LINK:
59
62
  insertFileLinkCallback && insertFileLinkCallback(editor, fileInfo.name, fileInfo.file_uuid);
@@ -62,8 +65,8 @@ const SelectSdocFileDialog = _ref => {
62
65
  insertSdocFileLinkCallback && insertSdocFileLinkCallback(editor, fileInfo.name, fileInfo.file_uuid);
63
66
  break;
64
67
  case _constants.ELEMENT_TYPE.WHITEBOARD:
65
- console.log(33);
66
- insertWhiteboardFile && insertWhiteboardFile(editor, fileInfo.name, fileInfo.path);
68
+ console.log(33, insertWhiteboardFile, insertWhiteboard);
69
+ insertWhiteboard && insertWhiteboard(editor, fileInfo.name, fileInfo.path);
67
70
  break;
68
71
  default:
69
72
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.198-test2.4",
3
+ "version": "1.0.198-test2.6",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",