@seafile/sdoc-editor 1.0.198-test0.7 → 1.0.198-test0.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.
@@ -57,6 +57,7 @@ const getType = editor => {
57
57
  };
58
58
  exports.getType = getType;
59
59
  const insertSdocFileLink = (editor, text, uuid) => {
60
+ console.log(10, editor.selection);
60
61
  if (isMenuDisabled(editor)) return;
61
62
  // Selection folded or not
62
63
  const {
@@ -62,11 +62,12 @@ const generateWhiteboardNode = function (repoID) {
62
62
  };
63
63
  exports.generateWhiteboardNode = generateWhiteboardNode;
64
64
  const insertWhiteboard = (editor, filename, filePath) => {
65
- console.log(8, editor);
65
+ console.log(8, editor.selection);
66
66
  if (isInsertWhiteboardMenuDisabled(editor)) return;
67
67
  const {
68
68
  repoID
69
69
  } = window.app.pageOptions;
70
+ console.log(9, repoID);
70
71
  const {
71
72
  selection
72
73
  } = editor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.198-test0.7",
3
+ "version": "1.0.198-test0.8",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",