@seafile/sdoc-editor 2.0.34-alph-0.0.1 → 2.0.34-alph-0.0.2

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,6 +87,10 @@ class TableContextMenu extends _react.default.Component {
87
87
  this.colorSelectorRef = /*#__PURE__*/_react.default.createRef();
88
88
  }
89
89
  componentDidMount() {
90
+ const {
91
+ readonly
92
+ } = this.props;
93
+ if (readonly) return;
90
94
  this.position = this.props.contextMenuPosition;
91
95
  this.updateMenuPosition();
92
96
  }
@@ -121,7 +125,7 @@ class TableContextMenu extends _react.default.Component {
121
125
  t,
122
126
  readonly
123
127
  } = this.props;
124
- if (readonly) return;
128
+ // if (readonly) return;
125
129
  const currentTable = (0, _core.getSelectedNodeByType)(editor, _constants.ELEMENT_TYPE.TABLE);
126
130
  if (!currentTable) return null;
127
131
  const currentRow = (0, _core.getSelectedNodeByType)(editor, _constants.ELEMENT_TYPE.TABLE_ROW);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "2.0.34-alph-0.0.1",
3
+ "version": "2.0.34-alph-0.0.2",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",