@seafile/seafile-editor 1.0.85-beta2 → 1.0.85-beta3
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.
|
@@ -172,7 +172,8 @@ const RenderTableContainer = (_ref, editor) => {
|
|
|
172
172
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
173
173
|
style: {
|
|
174
174
|
position: 'relative'
|
|
175
|
-
}
|
|
175
|
+
},
|
|
176
|
+
"data-id": element.id
|
|
176
177
|
}, /*#__PURE__*/_react.default.createElement("table", {
|
|
177
178
|
ref: tableRef,
|
|
178
179
|
onMouseDown: handleMouseDown,
|
|
@@ -191,7 +192,9 @@ const RenderTableRow = _ref2 => {
|
|
|
191
192
|
children,
|
|
192
193
|
element
|
|
193
194
|
} = _ref2;
|
|
194
|
-
return /*#__PURE__*/_react.default.createElement("tr", attributes,
|
|
195
|
+
return /*#__PURE__*/_react.default.createElement("tr", Object.assign({}, attributes, {
|
|
196
|
+
"data-id": element.id
|
|
197
|
+
}), children);
|
|
195
198
|
};
|
|
196
199
|
exports.RenderTableRow = RenderTableRow;
|
|
197
200
|
const RenderTableCell = _ref3 => {
|
|
@@ -216,6 +219,7 @@ const RenderTableCell = _ref3 => {
|
|
|
216
219
|
}
|
|
217
220
|
return /*#__PURE__*/_react.default.createElement("td", Object.assign({
|
|
218
221
|
"data-root": "true",
|
|
222
|
+
"data-id": element.id,
|
|
219
223
|
style: style
|
|
220
224
|
}, attributes), children);
|
|
221
225
|
};
|