@seafile/seafile-editor 1.0.91-beta1 → 1.0.91-beta2

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.
@@ -33,7 +33,6 @@ const InlineEditor = _ref => {
33
33
  const focusRangeRef = (0, _react.useRef)(null);
34
34
  const editor = (0, _react.useMemo)(() => {
35
35
  const baseEditor = (0, _extension.inlineEditor)();
36
- baseEditor.isInline = true;
37
36
  return (0, _withPropsEditor.default)(baseEditor, {
38
37
  editorApi,
39
38
  onSave,
@@ -16,6 +16,7 @@ const withPropsEditor = function (editor) {
16
16
  if (props.columns) {
17
17
  newEditor.columns = props.columns;
18
18
  }
19
+ newEditor.isInlineEditor = true;
19
20
  return newEditor;
20
21
  };
21
22
  var _default = exports.default = withPropsEditor;
@@ -46,7 +46,7 @@ const renderLink = (_ref, editor) => {
46
46
  e.stopPropagation();
47
47
  const eventBus = _eventBus.default.getInstance();
48
48
  if (isReadonly) {
49
- if (editor.isInline) {
49
+ if (editor.isInlineEditor) {
50
50
  window.open(element.url);
51
51
  return;
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.91beta1",
3
+ "version": "1.0.91beta2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {