@seafile/seafile-editor 1.0.85-beta5 → 1.0.85-beta7

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.
@@ -31,12 +31,13 @@ const InlineEditor = _ref => {
31
31
  } = _ref;
32
32
  const [slateValue, setSlateValue] = (0, _react.useState)(value);
33
33
  const editor = (0, _react.useMemo)(() => {
34
- if (showTitle) return (0, _withPropsEditor.default)(_extension.inlineEditor, {
34
+ const baseEditor = (0, _extension.inlineEditor)();
35
+ if (showTitle) return (0, _withPropsEditor.default)(baseEditor, {
35
36
  editorApi,
36
37
  onSave,
37
38
  columns
38
39
  });
39
- return (0, _extension.createSlateEditor)();
40
+ return baseEditor;
40
41
  }, [columns, editorApi, onSave, showTitle]);
41
42
  const eventProxy = (0, _react.useMemo)(() => {
42
43
  return new _eventHandler.default(editor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.85beta5",
3
+ "version": "1.0.85beta7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {