@seafile/comment-editor 0.0.1-alpha.18 → 0.0.1-alpha.19

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.
@@ -143,8 +143,10 @@ const CommentEditor = _ref => {
143
143
  hiddenComment && hiddenComment(false);
144
144
  if (onContentChange) {
145
145
  if (editor.children.find(n => _slate.Node.string(n).trim())) {
146
+ console.log(11);
146
147
  onContentChange((0, _slateToMd.default)(editor.children));
147
148
  } else {
149
+ console.log(22);
148
150
  onContentChange(null);
149
151
  }
150
152
  }
@@ -154,6 +156,7 @@ const CommentEditor = _ref => {
154
156
  // set editor children
155
157
  (0, _react.useEffect)(() => {
156
158
  let children = (0, _mdToSlate.default)(content);
159
+ console.log('children', children);
157
160
  editor.children = children;
158
161
  _slate.Transforms.select(editor, _slate.Editor.end(editor, []));
159
162
  }, [editor, content]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/comment-editor",
3
- "version": "0.0.1-alpha.18",
3
+ "version": "0.0.1-alpha.19",
4
4
  "private": false,
5
5
  "description": "This is a comment editor",
6
6
  "main": "dist/index.js",