hoeditor-web 3.1.7 → 3.1.8

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.
@@ -40210,7 +40210,7 @@ var DocController = /*#__PURE__*/function () {
40210
40210
  key: "deleteTextBeforePath",
40211
40211
  value: function () {
40212
40212
  var _deleteTextBeforePath = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee(startPath) {
40213
- var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, nextNode, path, signNode, table, c, colProperty, spath, epath, newSignNode, nodesDeleteUndoUnit, pNode;
40213
+ var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, sPath, ePath, path, signNode, table, c, colProperty, pNode;
40214
40214
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
40215
40215
  while (1) switch (_context.prev = _context.next) {
40216
40216
  case 0:
@@ -40231,18 +40231,18 @@ var DocController = /*#__PURE__*/function () {
40231
40231
  // )
40232
40232
  // );
40233
40233
  // hoEditorFactory.undoService.commit();
40234
- _context.next = 126;
40234
+ _context.next = 123;
40235
40235
  break;
40236
40236
  case 6:
40237
40237
  nodePosition = hoEditorFactory.docTree.findNodePositionByPath(startPath);
40238
40238
  childIndex = nodePosition.childIndex;
40239
40239
  node = nodePosition.node;
40240
40240
  if (!node) {
40241
- _context.next = 126;
40241
+ _context.next = 123;
40242
40242
  break;
40243
40243
  }
40244
40244
  if (!domRange.isEmpty) {
40245
- _context.next = 126;
40245
+ _context.next = 123;
40246
40246
  break;
40247
40247
  }
40248
40248
  if (!(node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R)) {
@@ -40298,7 +40298,7 @@ var DocController = /*#__PURE__*/function () {
40298
40298
  aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
40299
40299
  this.deleteRange(aRange, true);
40300
40300
  hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
40301
- _context.next = 126;
40301
+ _context.next = 123;
40302
40302
  break;
40303
40303
  case 36:
40304
40304
  if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j)) {
@@ -40350,7 +40350,7 @@ var DocController = /*#__PURE__*/function () {
40350
40350
  // )
40351
40351
  // );
40352
40352
  // hoEditorFactory.undoService.commit();
40353
- _context.next = 126;
40353
+ _context.next = 123;
40354
40354
  break;
40355
40355
  case 56:
40356
40356
  if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_31__/* .ParagraphNode */ .C)) {
@@ -40437,13 +40437,15 @@ var DocController = /*#__PURE__*/function () {
40437
40437
  return _context.abrupt("return");
40438
40438
  case 98:
40439
40439
  if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
40440
- _context.next = 121;
40440
+ _context.next = 118;
40441
40441
  break;
40442
40442
  }
40443
40443
  preNode = node.previousLeaf();
40444
- nextNode = node.nextLeaf();
40445
- if (!((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N))) {
40446
- _context.next = 110;
40444
+ sPath = hoEditorFactory.docTree.getNodeLastPath(preNode);
40445
+ ePath = hoEditorFactory.docTree.getNodeLastPath(node); //const nextNode = node.nextLeaf();
40446
+ //if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof SignNode) && !(nextNode instanceof SignNode)) {
40447
+ if (!((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate)) {
40448
+ _context.next = 113;
40447
40449
  break;
40448
40450
  }
40449
40451
  path = hoEditorFactory.docTree.getNodeLastPath(preNode);
@@ -40465,31 +40467,15 @@ var DocController = /*#__PURE__*/function () {
40465
40467
  }
40466
40468
  }
40467
40469
  return _context.abrupt("return");
40468
- case 110:
40469
- if (!(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
40470
- _context.next = 121;
40471
- break;
40472
- }
40473
- spath = "";
40474
- if (node.number === 2 || node.number === 1 && node.isTemplate) {
40475
- spath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
40476
- } else {
40477
- spath = hoEditorFactory.docTree.getNodeLastPath(preNode);
40470
+ case 113:
40471
+ if (node.connectMode == "换行" && preNode instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_31__/* .ParagraphNode */ .C) {
40472
+ sPath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
40478
40473
  }
40479
- //const spath = hoEditorFactory.docTree.getNodeLastPath(preNode);
40480
- epath = hoEditorFactory.docTree.getNodeLastPath(node);
40481
- newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N(this._hoEditorFactoryID, preNode.rootNodes, preNode.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 1, preNode.type, preNode.name === "" ? "签名" : preNode.name, preNode.signType, preNode.signFormat, preNode.signor, preNode.signTime, preNode.signTimeFormat, preNode.imgSrc, preNode.imgWidth, preNode.imgHeight, preNode.customProperty, preNode.isTemplate ? preNode.isTemplate : node.isTemplate,
40482
- //node.isTemplate,
40483
- node.styleIndex, preNode.connectMode, preNode.isFront, preNode.allowEditSignTime, preNode.fingerPrintSrc, preNode.fingerPosition, preNode.attribute, preNode.connectChar, preNode.otherProperties);
40484
40474
  hoEditorFactory.undoService.begin();
40485
- nodesDeleteUndoUnit = new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, spath, epath, true);
40486
- hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
40487
- if (!nodesDeleteUndoUnit.isError && (node.number === 2 || node.number === 1 && node.isTemplate)) {
40488
- hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, spath, newSignNode));
40489
- }
40475
+ hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, sPath, ePath, true));
40490
40476
  hoEditorFactory.undoService.commit();
40491
40477
  return _context.abrupt("return");
40492
- case 121:
40478
+ case 118:
40493
40479
  pNode = node.parentNode;
40494
40480
  hoEditorFactory.undoService.begin();
40495
40481
  hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
@@ -40497,7 +40483,7 @@ var DocController = /*#__PURE__*/function () {
40497
40483
  if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
40498
40484
  this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
40499
40485
  }
40500
- case 126:
40486
+ case 123:
40501
40487
  case "end":
40502
40488
  return _context.stop();
40503
40489
  }
@@ -45771,11 +45757,25 @@ var DocTree = /*#__PURE__*/function () {
45771
45757
  }, {
45772
45758
  key: "getParentNode",
45773
45759
  value: function getParentNode(startPath) {
45774
- var pNode = null;
45760
+ var parentNode = null;
45775
45761
  var np = this.findNodePositionByPath(startPath);
45776
45762
  if (!(np && np.node)) {
45777
45763
  throw _events_Exception__WEBPACK_IMPORTED_MODULE_42__/* .Exception */ .P.NodeNotFound();
45778
45764
  }
45765
+ parentNode = np.node.parentNode;
45766
+ if (parentNode && parentNode.last() == np.node && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_36__/* .TextInputFieldNode */ .re) {
45767
+ parentNode = parentNode.parentNode;
45768
+ }
45769
+ return parentNode;
45770
+ }
45771
+ }, {
45772
+ key: "getFinalParentNode",
45773
+ value: function getFinalParentNode(path) {
45774
+ var pNode = null;
45775
+ var np = this.findNodePositionByPath(path);
45776
+ if (!(np && np.node)) {
45777
+ throw _events_Exception__WEBPACK_IMPORTED_MODULE_42__/* .Exception */ .P.NodeNotFound();
45778
+ }
45779
45779
  pNode = np.node.parentNode;
45780
45780
  if (pNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_43__/* .CellNode */ .D) {
45781
45781
  return pNode;
@@ -45788,14 +45788,6 @@ var DocTree = /*#__PURE__*/function () {
45788
45788
  }
45789
45789
  }
45790
45790
  } while (pNode && pNode.parentNode);
45791
- // parentNode = np.node.parentNode;
45792
- // if (
45793
- // parentNode &&
45794
- // parentNode.last() == np.node &&
45795
- // parentNode instanceof TextInputFieldNode
45796
- // ) {
45797
- // parentNode = parentNode.parentNode;
45798
- // }
45799
45791
  return pNode;
45800
45792
  }
45801
45793
  }, {
@@ -61026,10 +61018,16 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
61026
61018
  _this._styleIndex = hoEditorFactory.docTree.curStyleIndex;
61027
61019
  }
61028
61020
  _this._connectMode = connectMode;
61029
- if (signType === 1 && type !== 1) {
61021
+ if (isFront !== undefined) {
61030
61022
  _this._isFront = isFront;
61023
+ }
61024
+ if (allowEditSignTime !== undefined) {
61031
61025
  _this._allowEditSignTime = allowEditSignTime;
61032
61026
  }
61027
+ // if (signType === 1 && type !== 1) {
61028
+ // this._isFront = isFront as boolean;
61029
+ // this._allowEditSignTime = allowEditSignTime as boolean;
61030
+ // }
61033
61031
  _this._otherProperties = new Object();
61034
61032
  _this._customProperty = new Object();
61035
61033
  var assignvalue = function assignvalue(target, source) {
@@ -78430,7 +78428,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
78430
78428
  /*
78431
78429
  * @Author: your name
78432
78430
  * @Date: 2021-09-01 16:51:49
78433
- * @LastEditTime: 2023-07-07 17:44:37
78431
+ * @LastEditTime: 2023-09-05 16:39:23
78434
78432
  * @LastEditors: liyanan 2441631434@qq.com
78435
78433
  * @Description: In User Settings Edit
78436
78434
  * @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
@@ -78932,11 +78930,14 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
78932
78930
  bitmap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
78933
78931
  if (_this3.number === 1) {
78934
78932
  bitmap.x = 0;
78933
+ _this3.addChildAt(bitmap, 0);
78935
78934
  } else {
78936
78935
  if (isFront) {
78937
78936
  bitmap.x = 0;
78937
+ _this3.addChildAt(bitmap, 0);
78938
78938
  } else {
78939
78939
  bitmap.x = _this3._drawText.getMeasuredWidth();
78940
+ _this3.addChild(bitmap);
78940
78941
  }
78941
78942
  }
78942
78943
  if (_this3.attribute === 2 && _this3.abi02 !== "") {
@@ -78996,8 +78997,6 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
78996
78997
  }
78997
78998
  _this3.addChild(_this3._drawDate);
78998
78999
  }
78999
- } else {
79000
- _this3.addChildAt(bitmap, 0);
79001
79000
  }
79002
79001
  }
79003
79002
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
@@ -79074,7 +79073,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
79074
79073
  }
79075
79074
  bitmap.setTransform(x, y, width / hitWidth, scaleY);
79076
79075
  } else {
79077
- bitmap.setTransform(0, -drawNode.dHeight, width / hitWidth, drawNode.dHeight / hitHeight);
79076
+ bitmap.setTransform(bitmap.x, -drawNode.dHeight, width / hitWidth, drawNode.dHeight / hitHeight);
79078
79077
  }
79079
79078
  var hitArea = new createjs.Shape();
79080
79079
  hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
@@ -85398,7 +85397,7 @@ var DrawTree = /*#__PURE__*/function () {
85398
85397
  }
85399
85398
  var aNode = e.node;
85400
85399
  var nodePathCur = aNode.getNodePath();
85401
- var pNode = hoEditorFactory.docTree.getParentNode(nodePathCur);
85400
+ var pNode = hoEditorFactory.docTree.getFinalParentNode(nodePathCur);
85402
85401
  if (pNode instanceof CellNode/* CellNode */.D) {
85403
85402
  if (pNode.table.tableProperty.isSignLock && pNode.table.tableProperty.isLock) {
85404
85403
  message/* default */.Z.destroy();
@@ -217573,7 +217572,7 @@ var TextNode = __webpack_require__(27198);
217573
217572
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
217574
217573
  var ParagraphNode = __webpack_require__(67945);
217575
217574
  ;// CONCATENATED MODULE: ./src/components/version.ts
217576
- /* harmony default export */ var version = ('3.1.7');
217575
+ /* harmony default export */ var version = ('3.1.8');
217577
217576
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
217578
217577
  var PoperTipText = __webpack_require__(50987);
217579
217578
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -228794,8 +228793,9 @@ var VueController = /*#__PURE__*/function () {
228794
228793
  return;
228795
228794
  }
228796
228795
  if (node instanceof SignNode/* SignNode */.N) {
228797
- var nextNode = node.nextLeaf();
228798
- if ((node.imgSrc !== '' || node.fingerPrintSrc !== '') && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
228796
+ //const nextNode = node.nextLeaf();
228797
+ //if ((node.imgSrc !== '' || node.fingerPrintSrc !== '') && node.isTemplate && !(preNode instanceof SignNode) && !(nextNode instanceof SignNode)) {
228798
+ if ((node.imgSrc !== '' || node.fingerPrintSrc !== '') && node.isTemplate) {
228799
228799
  var signNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType */.Jq.ntSign, 0, 0, node.name === '' ? '签名' : node.name, node.signType, node.signFormat, '', '', node.signTimeFormat, '', 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime, '', undefined, node.attribute, node.connectChar, node.otherProperties);
228800
228800
  hoEditorFactory.undoService.begin();
228801
228801
  hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
@@ -228814,35 +228814,72 @@ var VueController = /*#__PURE__*/function () {
228814
228814
  }
228815
228815
  }
228816
228816
  return;
228817
- }
228818
- if (preNode instanceof SignNode/* SignNode */.N) {
228819
- if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psDesign) {
228820
- if (node.isTemplate && node.number === 0) {
228821
- message/* default */.Z.warn('该签名元素不允许删除!');
228822
- return;
228823
- }
228824
- }
228825
- var spath = '';
228826
- if (node.number === 2 || node.number === 1 && node.isTemplate) {
228827
- spath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
228828
- } else {
228829
- spath = hoEditorFactory.docTree.getNodeLastPath(preNode);
228817
+ } else {
228818
+ if (node.connectMode == "换行" && preNode instanceof ParagraphNode/* ParagraphNode */.C) {
228819
+ sPath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
228830
228820
  }
228831
- //const spath = hoEditorFactory.docTree.getNodeLastPath(preNode as BaseNode);
228832
- //const epath = hoEditorFactory.docTree.getNodeLastPath(node);
228833
- var newSignNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, preNode.rootNodes, preNode.parentNode, BaseNode/* NodeType */.Jq.ntSign, 1, preNode.type, preNode.name === '' ? '签名' : preNode.name, preNode.signType, preNode.signFormat, preNode.signor, preNode.signTime, preNode.signTimeFormat, preNode.imgSrc, preNode.imgWidth, preNode.imgHeight, preNode.customProperty, preNode.isTemplate ? preNode.isTemplate : node.isTemplate,
228834
- //node.isTemplate,
228835
- node.styleIndex, preNode.connectMode, preNode.isFront, preNode.allowEditSignTime, preNode.fingerPrintSrc, preNode.fingerPosition, preNode.attribute, preNode.connectChar, preNode.otherProperties);
228836
228821
  hoEditorFactory.undoService.begin();
228837
- var nodesDeleteUndoUnit = new NodesDeleteUndoUnit/* NodesDeleteUndoUnit */.F(this._hoEditorFactoryID, spath, ePath, true);
228838
- hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
228839
- if (!nodesDeleteUndoUnit.isError && (node.number === 2 || node.number === 1 && node.isTemplate)) {
228840
- hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, spath, newSignNode));
228841
- }
228822
+ hoEditorFactory.undoService.add(new NodesDeleteUndoUnit/* NodesDeleteUndoUnit */.F(this._hoEditorFactoryID, sPath, ePath, true));
228842
228823
  hoEditorFactory.undoService.commit();
228843
228824
  return;
228844
228825
  }
228826
+ /*
228827
+ if (preNode instanceof SignNode) {
228828
+ if (hoEditorFactory.drawTree.paintStatus !== PaintState.psDesign) {
228829
+ if (node.isTemplate && node.number === 0) {
228830
+ message.warn('该签名元素不允许删除!');
228831
+ return;
228832
+ }
228833
+ }
228834
+ let spath = '';
228835
+ if (node.number === 2 || (node.number === 1 && node.isTemplate)) {
228836
+ spath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf() as BaseNode);
228837
+ } else {
228838
+ spath = hoEditorFactory.docTree.getNodeLastPath(preNode);
228839
+ }
228840
+ //const spath = hoEditorFactory.docTree.getNodeLastPath(preNode as BaseNode);
228841
+ //const epath = hoEditorFactory.docTree.getNodeLastPath(node);
228842
+ const newSignNode = new SignNode(
228843
+ this._hoEditorFactoryID,
228844
+ preNode.rootNodes,
228845
+ preNode.parentNode,
228846
+ NodeType.ntSign,
228847
+ preNode.number,
228848
+ preNode.type,
228849
+ preNode.name === '' ? '签名' : preNode.name,
228850
+ preNode.signType,
228851
+ preNode.signFormat,
228852
+ preNode.signor,
228853
+ preNode.signTime,
228854
+ preNode.signTimeFormat,
228855
+ preNode.imgSrc,
228856
+ preNode.imgWidth,
228857
+ preNode.imgHeight,
228858
+ preNode.customProperty,
228859
+ preNode.isTemplate ? preNode.isTemplate : node.isTemplate,
228860
+ //node.isTemplate,
228861
+ node.styleIndex,
228862
+ preNode.connectMode,
228863
+ preNode.isFront,
228864
+ preNode.allowEditSignTime,
228865
+ preNode.fingerPrintSrc,
228866
+ preNode.fingerPosition,
228867
+ preNode.attribute,
228868
+ preNode.connectChar,
228869
+ preNode.otherProperties
228870
+ );
228871
+ hoEditorFactory.undoService.begin();
228872
+ const nodesDeleteUndoUnit = new NodesDeleteUndoUnit(this._hoEditorFactoryID, spath, ePath, true);
228873
+ hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
228874
+ if (!nodesDeleteUndoUnit.isError && (node.number === 2 || (node.number === 1 && node.isTemplate))) {
228875
+ hoEditorFactory.undoService.add(new NodeInsertUndoUnit(this._hoEditorFactoryID, spath, newSignNode));
228876
+ }
228877
+ hoEditorFactory.undoService.commit();
228878
+ return;
228879
+ }
228880
+ */
228845
228881
  }
228882
+
228846
228883
  hoEditorFactory.undoService.begin();
228847
228884
  hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node));
228848
228885
  hoEditorFactory.undoService.commit();
@@ -229562,7 +229599,7 @@ var VueController = /*#__PURE__*/function () {
229562
229599
  throw new Error('根据元素id:' + id + '未找到对应的元素');
229563
229600
  }
229564
229601
  }
229565
- //更新回填元素的文本内容
229602
+ //更新回填元素的文本内容 更正元素
229566
229603
  }, {
229567
229604
  key: "updateElementText",
229568
229605
  value: function () {
@@ -229646,7 +229683,7 @@ var VueController = /*#__PURE__*/function () {
229646
229683
  return _updateElementText.apply(this, arguments);
229647
229684
  }
229648
229685
  return updateElementText;
229649
- }()
229686
+ }() //元素替换
229650
229687
  }, {
229651
229688
  key: "updateElementTextById",
229652
229689
  value: function () {
@@ -233397,7 +233434,7 @@ var EditController = /*#__PURE__*/function () {
233397
233434
  }
233398
233435
  }
233399
233436
  if (result && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psDesign) {
233400
- var pNode = hoEditorFactory.docTree.getParentNode(curDomRange.startPath);
233437
+ var pNode = hoEditorFactory.docTree.getFinalParentNode(curDomRange.startPath);
233401
233438
  if (pNode && pNode instanceof CellNode/* CellNode */.D) {
233402
233439
  if (pNode.table.tableProperty.isSignLock && pNode.table.tableProperty.isLock) {
233403
233440
  message/* default */.Z.destroy();