@seafile/seafile-editor 1.0.100 → 1.0.101

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.
@@ -62,10 +62,11 @@ const LongTextInlineEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) =>
62
62
  }, [enableEdit, closeEditor]);
63
63
  (0, _react.useImperativeHandle)(ref, () => {
64
64
  return {
65
+ enableEdit: enableEdit,
65
66
  openEditor: openEditor,
66
67
  closeEditor: closeEditor
67
68
  };
68
- }, [openEditor, closeEditor]);
69
+ }, [enableEdit, openEditor, closeEditor]);
69
70
  const handelEnableEdit = (0, _react.useCallback)(() => {
70
71
  onClick && onClick();
71
72
  openEditor();
@@ -18,7 +18,7 @@ const replaceColumnData = (mdNodes, columns, getCellValue, updateImgUrl) => {
18
18
  'bold': data.bold,
19
19
  'italic': data.italic
20
20
  };
21
- if (column.type === 'long-text') {
21
+ if ((column === null || column === void 0 ? void 0 : column.type) === 'long-text') {
22
22
  newNode = {
23
23
  type: 'html',
24
24
  value: value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {