@seafile/sdoc-editor 2.0.34-alph-0.0.1 → 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.
|
@@ -87,6 +87,12 @@ 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
96
|
this.position = this.props.contextMenuPosition;
|
|
91
97
|
this.updateMenuPosition();
|
|
92
98
|
}
|
|
@@ -121,7 +127,6 @@ class TableContextMenu extends _react.default.Component {
|
|
|
121
127
|
t,
|
|
122
128
|
readonly
|
|
123
129
|
} = this.props;
|
|
124
|
-
if (readonly) return;
|
|
125
130
|
const currentTable = (0, _core.getSelectedNodeByType)(editor, _constants.ELEMENT_TYPE.TABLE);
|
|
126
131
|
if (!currentTable) return null;
|
|
127
132
|
const currentRow = (0, _core.getSelectedNodeByType)(editor, _constants.ELEMENT_TYPE.TABLE_ROW);
|