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

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.
@@ -88,8 +88,10 @@ class TableContextMenu extends _react.default.Component {
88
88
  }
89
89
  componentDidMount() {
90
90
  const {
91
- readonly
91
+ readonly,
92
+ editor
92
93
  } = this.props;
94
+ console.log(3, editor.editorType);
93
95
  if (readonly) return;
94
96
  this.position = this.props.contextMenuPosition;
95
97
  this.updateMenuPosition();
@@ -125,7 +127,6 @@ class TableContextMenu extends _react.default.Component {
125
127
  t,
126
128
  readonly
127
129
  } = this.props;
128
- // if (readonly) return;
129
130
  const currentTable = (0, _core.getSelectedNodeByType)(editor, _constants.ELEMENT_TYPE.TABLE);
130
131
  if (!currentTable) return null;
131
132
  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.2",
3
+ "version": "2.0.34-alph-0.0.3",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",