@seafile/sdoc-editor 2.0.34-alph-0.0.3 → 2.0.34-alph-0.0.5

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.
@@ -87,12 +87,8 @@ class TableContextMenu extends _react.default.Component {
87
87
  this.colorSelectorRef = /*#__PURE__*/_react.default.createRef();
88
88
  }
89
89
  componentDidMount() {
90
- const {
91
- readonly,
92
- editor
93
- } = this.props;
94
- console.log(3, editor.editorType);
95
- if (readonly) return;
90
+ // const { readonly, editor } = this.props;
91
+ // if (readonly && editor.editorType === WIKI_EDITOR) return;
96
92
  this.position = this.props.contextMenuPosition;
97
93
  this.updateMenuPosition();
98
94
  }
@@ -51,7 +51,7 @@ const TableRoot = _ref => {
51
51
  ref: tableScrollWrapper,
52
52
  onScroll: onScroll,
53
53
  onContextMenu: onContextMenu
54
- }, children)), isShowContextMenu && /*#__PURE__*/_react.default.createElement(_menu.TableContextMenu, {
54
+ }, children)), isShowContextMenu && !readonly && /*#__PURE__*/_react.default.createElement(_menu.TableContextMenu, {
55
55
  editor: editor,
56
56
  contextMenuPosition: menuPosition,
57
57
  readonly: readonly
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "2.0.34-alph-0.0.3",
3
+ "version": "2.0.34-alph-0.0.5",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",