@fileverse-dev/fortune-core 1.1.57 → 1.1.58

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.
@@ -1217,7 +1217,7 @@ export function createRangeHightlight(ctx, inputInnerHtmlStr, ignoreRangeIndex)
1217
1217
  ctx.formulaRangeHighlight = formulaRanges;
1218
1218
  }
1219
1219
  export function moveCursorToEnd(editableDiv) {
1220
- editableDiv.focus();
1220
+ editableDiv === null || editableDiv === void 0 ? void 0 : editableDiv.focus();
1221
1221
  var range = document.createRange();
1222
1222
  var selection = window.getSelection();
1223
1223
  range.selectNodeContents(editableDiv);
@@ -1493,7 +1493,7 @@ export function copy(ctx) {
1493
1493
  export function deleteSelectedCellText(ctx) {
1494
1494
  var _a, _b, _c;
1495
1495
  var allowEdit = isAllowEdit(ctx);
1496
- if (allowEdit === false) {
1496
+ if (allowEdit === false || ctx.isFlvReadOnly) {
1497
1497
  return "allowEdit";
1498
1498
  }
1499
1499
  var selection = ctx.luckysheet_select_save;
@@ -1247,7 +1247,7 @@ function createRangeHightlight(ctx, inputInnerHtmlStr, ignoreRangeIndex) {
1247
1247
  ctx.formulaRangeHighlight = formulaRanges;
1248
1248
  }
1249
1249
  function moveCursorToEnd(editableDiv) {
1250
- editableDiv.focus();
1250
+ editableDiv === null || editableDiv === void 0 ? void 0 : editableDiv.focus();
1251
1251
  var range = document.createRange();
1252
1252
  var selection = window.getSelection();
1253
1253
  range.selectNodeContents(editableDiv);
@@ -1528,7 +1528,7 @@ function copy(ctx) {
1528
1528
  function deleteSelectedCellText(ctx) {
1529
1529
  var _a, _b, _c;
1530
1530
  var allowEdit = (0, _utils.isAllowEdit)(ctx);
1531
- if (allowEdit === false) {
1531
+ if (allowEdit === false || ctx.isFlvReadOnly) {
1532
1532
  return "allowEdit";
1533
1533
  }
1534
1534
  var selection = ctx.luckysheet_select_save;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.1.57",
3
+ "version": "1.1.58",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",