@seafile/sdoc-editor 1.0.118 → 1.0.119

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.
@@ -278,6 +278,11 @@ const withTable = editor => {
278
278
  }
279
279
  }
280
280
  }
281
+ const [node] = (0, _core.getTopLevelBlockNode)(editor);
282
+ if (_slate.Range.isRange(selection) && (node === null || node === void 0 ? void 0 : node.type) === _constants.ELEMENT_TYPE.TABLE) {
283
+ newEditor.deleteBackward();
284
+ return;
285
+ }
281
286
  deleteFragment(unit);
282
287
  };
283
288
  newEditor.deleteForward = unit => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.118",
3
+ "version": "1.0.119",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",