hoeditor-web 3.2.48 → 3.2.50

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.
package/lib/hoeditor.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-BZDmGwAu.mjs";
2
+ import { H as i, d as r, b as e, a as l, e as t, T as H, f as d, i as f } from "./index-D0Gk9boR.mjs";
3
3
  export {
4
4
  i as HoDocs,
5
5
  r as HoEditorProvide,
@@ -3743,6 +3743,10 @@ class BaseNode {
3743
3743
  getParentNodes() {
3744
3744
  return this._parentNode ? this._parentNode.childNodes : this.rootNodes;
3745
3745
  }
3746
+ //非查看痕迹模式且已经审阅删除
3747
+ editModeAndSoftDelete() {
3748
+ return !1;
3749
+ }
3746
3750
  // /**
3747
3751
  // *@author xyl
3748
3752
  // *@returns 返回当前节点的层级
@@ -3826,12 +3830,21 @@ class BaseNode {
3826
3830
  for (; ; )
3827
3831
  if (t) {
3828
3832
  const o = t.childNodes, n = o.indexOf(r);
3829
- return n === 0 && (t == null ? void 0 : t.nodeType) === 7 && r._nodeType !== 5 && HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).isThrowError ? (message.warn("经检测,病历元素“" + t.name + "”的模板格式有问题,可能会导致死循环,请联系工程师进行处理。"), null) : n === o.length - 1 ? null : o[n + 1];
3833
+ if (n === 0 && (t == null ? void 0 : t.nodeType) === 7 && r._nodeType !== 5 && HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).isThrowError)
3834
+ return message.warn("经检测,病历元素“" + t.name + "”的模板格式有问题,可能会导致死循环,请联系工程师进行处理。"), null;
3835
+ if (n === o.length - 1)
3836
+ return null;
3837
+ {
3838
+ const s = o[n + 1];
3839
+ return s && s.editModeAndSoftDelete() ? s.nextSibling() : s;
3840
+ }
3830
3841
  } else if (r) {
3831
- const o = this.rootNodes.indexOf(r);
3832
- if (o < this.rootNodes.length - 1)
3833
- return this.rootNodes[o + 1];
3834
- break;
3842
+ let o = this.rootNodes.indexOf(r);
3843
+ if (o < this.rootNodes.length - 1) {
3844
+ const n = this.rootNodes[o + 1];
3845
+ return n && n.editModeAndSoftDelete() ? n.nextSibling() : n;
3846
+ } else
3847
+ break;
3835
3848
  } else
3836
3849
  break;
3837
3850
  return null;
@@ -3845,12 +3858,19 @@ class BaseNode {
3845
3858
  for (; ; )
3846
3859
  if (t) {
3847
3860
  const o = t.childNodes, n = o.indexOf(r);
3848
- return n === 0 ? null : o[n - 1];
3861
+ if (n === 0)
3862
+ return null;
3863
+ {
3864
+ const s = o[n - 1];
3865
+ return s && s.editModeAndSoftDelete() ? s.prevSibling() : s;
3866
+ }
3849
3867
  } else if (r) {
3850
3868
  const o = this.rootNodes.indexOf(r);
3851
- if (o > 0)
3852
- return this.rootNodes[o - 1];
3853
- break;
3869
+ if (o > 0) {
3870
+ const n = this.rootNodes[o - 1];
3871
+ return n && n.editModeAndSoftDelete() ? n.prevSibling() : n;
3872
+ } else
3873
+ break;
3854
3874
  } else
3855
3875
  break;
3856
3876
  return null;
@@ -3884,20 +3904,20 @@ class BaseNode {
3884
3904
  if (!c)
3885
3905
  break;
3886
3906
  if (l = c, !l.isCombineNode())
3887
- return l;
3907
+ return l.editModeAndSoftDelete() ? l.nextLeaf() : l;
3888
3908
  }
3889
- return l;
3909
+ return l && l.editModeAndSoftDelete() ? l.nextLeaf() : l;
3890
3910
  } else
3891
- return l;
3911
+ return l && l.editModeAndSoftDelete() ? l.nextLeaf() : l;
3892
3912
  } else if (o) {
3893
3913
  const n = this.rootNodes.indexOf(o);
3894
3914
  if (n < this.rootNodes.length - 1) {
3895
3915
  if (this.rootNodes[n + 1].isCombineNode()) {
3896
3916
  const s = t.docTree.getNodeFirstPath(this.rootNodes[n + 1]), l = t.docTree.findNodePositionByPath(s);
3897
3917
  if (l && l.node)
3898
- return l.node;
3918
+ return l.node.editModeAndSoftDelete() ? l.node.nextLeaf() : l.node;
3899
3919
  }
3900
- return this.rootNodes[n + 1];
3920
+ return this.rootNodes[n + 1] && this.rootNodes[n + 1].editModeAndSoftDelete() ? this.rootNodes[n + 1].nextLeaf() : this.rootNodes[n + 1];
3901
3921
  } else
3902
3922
  break;
3903
3923
  } else
@@ -3929,19 +3949,20 @@ class BaseNode {
3929
3949
  if (!c)
3930
3950
  break;
3931
3951
  if (l = c, !l.isCombineNode())
3932
- return l;
3952
+ return l.editModeAndSoftDelete() ? l.previousLeaf() : l;
3933
3953
  }
3934
- return l;
3954
+ return l && l.editModeAndSoftDelete() ? l.previousLeaf() : l;
3935
3955
  } else
3936
- return l;
3956
+ return l && l.editModeAndSoftDelete() ? l.previousLeaf() : l;
3937
3957
  } else if (o) {
3938
3958
  const n = this.rootNodes.indexOf(o);
3939
3959
  if (n > 0)
3940
3960
  if (this.rootNodes[n - 1].isCombineNode()) {
3941
3961
  const s = r.docTree.getNodeLastPath(this.rootNodes[n - 1]), l = r.docTree.findNodePositionByPath(s);
3942
3962
  if (l && l.node)
3943
- return l.node;
3944
- } else return this.rootNodes[n - 1];
3963
+ return l.node.editModeAndSoftDelete() ? l.node.previousLeaf() : l.node;
3964
+ } else
3965
+ return this.rootNodes[n - 1] && this.rootNodes[n - 1].editModeAndSoftDelete() ? this.rootNodes[n - 1].previousLeaf() : this.rootNodes[n - 1];
3945
3966
  else
3946
3967
  break;
3947
3968
  } else
@@ -10318,7 +10339,7 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
10318
10339
  }
10319
10340
  }
10320
10341
  else {
10321
- if (!m) {
10342
+ if (!m && this.formularType !== 0) {
10322
10343
  n = !1;
10323
10344
  break;
10324
10345
  }
@@ -12351,6 +12372,10 @@ class DrawPageCell extends DrawArea {
12351
12372
  //实现接口部分
12352
12373
  b(this, "_node");
12353
12374
  b(this, "_discriminator");
12375
+ b(this, "setStrokeStyle2", (r, ...o) => {
12376
+ const n = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
12377
+ n.drawTree.paintStatus == PaintState.psPreview && !n.isUseImagePrint ? r.setStrokeStyle(o[0]) : r.setStrokeStyle(...o);
12378
+ });
12354
12379
  this._drawPageTable = o, this._backImg = new createjs$1.Shape(), this._backImg.name = "backImg", this.backColor = new createjs$1.Shape(), this.backColor.name = "backColor", this._topLine = new createjs$1.Shape(), this._bottomLine = new createjs$1.Shape(), this._leftLine = new createjs$1.Shape(), this._rightLine = new createjs$1.Shape(), this._touchArea = new createjs$1.Shape(), this._node = n, this._cell = n, this._startDline = f, this._endDline = f, this._dWidth = c, this._maxHeight = p, this._dHeight = d, this._discriminator = gDrawIntfID;
12355
12380
  let m = 0;
12356
12381
  const y = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
@@ -12540,7 +12565,7 @@ class DrawPageCell extends DrawArea {
12540
12565
  if (f || !f && y !== PaintState.psPreview && y !== PaintState.psPrint) {
12541
12566
  if (p[0]) {
12542
12567
  let v = null;
12543
- o > 0 && (v = this._cell.table.getMainCell(o - 1, n)[0]), (o == 0 || this.dTop == 0 || o > 0 && v && !v.cellProperty.gridLineDisplay[1]) && (this._topLine.name = "topLine", this._topLine.graphics.beginStroke(g[0]), w ? this._topLine.graphics.setStrokeDash([2, 2]) : this._topLine.graphics.setStrokeStyle(1, 0, 0, void 0, !0), this._topLine.graphics.moveTo(l, c).lineTo(l + d, c), this._topLine.graphics.endStroke(), this.children.includes(this._topLine) || this.addChildAt(this._topLine, this.children.length - 1));
12568
+ o > 0 && (v = this._cell.table.getMainCell(o - 1, n)[0]), (o == 0 || this.dTop == 0 || o > 0 && v && !v.cellProperty.gridLineDisplay[1]) && (this._topLine.name = "topLine", this._topLine.graphics.beginStroke(g[0]), w ? this._topLine.graphics.setStrokeDash([2, 2]) : this.setStrokeStyle2(this._topLine.graphics, 1, 0, 0, void 0, !0), this._topLine.graphics.moveTo(l, c).lineTo(l + d, c), this._topLine.graphics.endStroke(), this.children.includes(this._topLine) || this.addChildAt(this._topLine, this.children.length - 1));
12544
12569
  } else if (o > 0) {
12545
12570
  const v = (C, _) => {
12546
12571
  const E = this._cell.table.getMainCell(C, _)[0].drawCell.drawPageCells;
@@ -12553,7 +12578,7 @@ class DrawPageCell extends DrawArea {
12553
12578
  v(o - 1, n + C);
12554
12579
  }
12555
12580
  if (p[1])
12556
- this._bottomLine.name = "bottomLine", this._bottomLine.graphics.beginStroke(g[1]), w ? this._bottomLine.graphics.setStrokeDash([2, 2]) : this._bottomLine.graphics.setStrokeStyle(1, 0, 0, void 0, !0), this._bottomLine.graphics.moveTo(l, c + u).lineTo(l + d, c + u), this._bottomLine.graphics.endStroke(), this.children.includes(this._bottomLine) || this.addChildAt(this._bottomLine, this.children.length - 1);
12581
+ this._bottomLine.name = "bottomLine", this._bottomLine.graphics.beginStroke(g[1]), w ? this._bottomLine.graphics.setStrokeDash([2, 2]) : this.setStrokeStyle2(this._bottomLine.graphics, 1, 0, 0, void 0, !0), this._bottomLine.graphics.moveTo(l, c + u).lineTo(l + d, c + u), this._bottomLine.graphics.endStroke(), this.children.includes(this._bottomLine) || this.addChildAt(this._bottomLine, this.children.length - 1);
12557
12582
  else if (o < this.cell.table.rowCount - 1) {
12558
12583
  const v = (C, _) => {
12559
12584
  const E = this._cell.table.getMainCell(C, _)[0].drawCell.drawPageCells;
@@ -12567,7 +12592,7 @@ class DrawPageCell extends DrawArea {
12567
12592
  }
12568
12593
  if (p[2]) {
12569
12594
  let v = null;
12570
- n > 0 && (v = this._cell.table.getMainCell(o, n - 1)[0]), (n == 0 || n > 0 && v && !v.cellProperty.gridLineDisplay[3]) && (this._leftLine.name = "leftLine", this._leftLine.graphics.beginStroke(g[2]), w ? this._leftLine.graphics.setStrokeDash([2, 2]) : this._leftLine.graphics.setStrokeStyle(1, 0, 0, void 0, !0), this._leftLine.graphics.moveTo(l, c).lineTo(l, c + u), this._leftLine.graphics.endStroke(), this.children.includes(this._leftLine) || this.addChildAt(this._leftLine, this.children.length - 1));
12595
+ n > 0 && (v = this._cell.table.getMainCell(o, n - 1)[0]), (n == 0 || n > 0 && v && !v.cellProperty.gridLineDisplay[3]) && (this._leftLine.name = "leftLine", this._leftLine.graphics.beginStroke(g[2]), w ? this._leftLine.graphics.setStrokeDash([2, 2]) : this.setStrokeStyle2(this._leftLine.graphics, 1, 0, 0, void 0, !0), this._leftLine.graphics.moveTo(l, c).lineTo(l, c + u), this._leftLine.graphics.endStroke(), this.children.includes(this._leftLine) || this.addChildAt(this._leftLine, this.children.length - 1));
12571
12596
  } else if (n > 0) {
12572
12597
  const v = (C, _) => {
12573
12598
  const E = this._cell.table.getMainCell(C, _)[0].drawCell.drawPageCells;
@@ -12583,7 +12608,7 @@ class DrawPageCell extends DrawArea {
12583
12608
  v(o + C, n - 1);
12584
12609
  }
12585
12610
  if (p[3])
12586
- this._rightLine.name = "rightLine", this._rightLine.graphics.beginStroke(g[3]), w ? this._rightLine.graphics.setStrokeDash([2, 2]) : this._rightLine.graphics.setStrokeStyle(1, 0, 0, void 0, !0), this._rightLine.graphics.moveTo(l + d, c).lineTo(l + d, c + u), this._rightLine.graphics.endStroke(), this.children.includes(this._rightLine) || this.addChildAt(this._rightLine, this.children.length - 1);
12611
+ this._rightLine.name = "rightLine", this._rightLine.graphics.beginStroke(g[3]), w ? this._rightLine.graphics.setStrokeDash([2, 2]) : this.setStrokeStyle2(this._rightLine.graphics, 1, 0, 0, void 0, !0), this._rightLine.graphics.moveTo(l + d, c).lineTo(l + d, c + u), this._rightLine.graphics.endStroke(), this.children.includes(this._rightLine) || this.addChildAt(this._rightLine, this.children.length - 1);
12587
12612
  else if (n < this.cell.table.colCount - 1 && n > 0) {
12588
12613
  const v = (C, _) => {
12589
12614
  const E = this._cell.table.getMainCell(C, _)[0].drawCell.drawPageCells;
@@ -14898,7 +14923,7 @@ class DrawSignNode extends DrawCombineNode {
14898
14923
  }
14899
14924
  }
14900
14925
  }
14901
- const version = "3.2.48";
14926
+ const version = "3.2.50";
14902
14927
  var FingerPosition = /* @__PURE__ */ ((a) => (a[a.left = 0] = "left", a[a.center = 1] = "center", a[a.right = 2] = "right", a))(FingerPosition || {});
14903
14928
  class SignNode extends BaseNode {
14904
14929
  constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp, innerIdentifier) {
@@ -25360,6 +25385,8 @@ class PageProperty {
25360
25385
  //显示第一页的页脚
25361
25386
  b(this, "_pageNumber", 0);
25362
25387
  //页数 从第几页开始
25388
+ b(this, "_startPageNumber", 0);
25389
+ //页数 从第几页开始 new
25363
25390
  b(this, "_isHaveBgImage", !1);
25364
25391
  //是否设置了背景图片(打印的时候需要判断)
25365
25392
  b(this, "_commentWidthMm", 0);
@@ -25428,6 +25455,7 @@ class PageProperty {
25428
25455
  "showFirstPageHead",
25429
25456
  "showFirstPageFoot",
25430
25457
  "pageNumber",
25458
+ "startPageNumber",
25431
25459
  "isHaveBgImage",
25432
25460
  "commentWidthMm",
25433
25461
  "fontFormat",
@@ -25602,6 +25630,12 @@ class PageProperty {
25602
25630
  set pageNumber(a) {
25603
25631
  a !== this._pageNumber && (this._pageNumber = a);
25604
25632
  }
25633
+ get startPageNumber() {
25634
+ return this._startPageNumber;
25635
+ }
25636
+ set startPageNumber(a) {
25637
+ a !== this._startPageNumber && (this._startPageNumber = a);
25638
+ }
25605
25639
  get isHaveBgImage() {
25606
25640
  return this._isHaveBgImage;
25607
25641
  }
@@ -29312,6 +29346,12 @@ class TextNode extends BaseNode {
29312
29346
  }
29313
29347
  updateDrawNodes(r) {
29314
29348
  }
29349
+ editModeAndSoftDelete() {
29350
+ const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
29351
+ let o = r.docTree.styles[this._styleIndex];
29352
+ const n = !(o.deleterIndex === void 0 || o.deleterIndex === -1), s = r.drawTree.paintStatus === PaintState.psReview || r.drawTree.paintStatus === PaintState.psTrace;
29353
+ return n && !s && r.isHideComments;
29354
+ }
29315
29355
  deleteByIndex(r, o) {
29316
29356
  this._text = this._text.substr(0, r) + this._text.substr(o + 1, this._text.length);
29317
29357
  for (let n = 0; n < this.drawNodes.length; n++) {
@@ -44226,7 +44266,9 @@ class DrawPageMarkNode extends DrawCombineNode {
44226
44266
  this._dHeight = o.dHeight, this._dWidth = o.dWidth, this.y = o.baseY;
44227
44267
  }
44228
44268
  static getPageMarkText(t, r, o, n) {
44229
- const s = HOEditorFactorys.instance().getFactory(t), l = Math.max(s.drawTree.drawPages.length.toString().length, 2);
44269
+ const s = HOEditorFactorys.instance().getFactory(t);
44270
+ o += s.pageProperty.startPageNumber || 0;
44271
+ const l = Math.max(s.drawTree.drawPages.length.toString().length, 2);
44230
44272
  if (r === 0)
44231
44273
  return n ? " ".repeat(l) : o.toString();
44232
44274
  {
@@ -45116,7 +45158,7 @@ class StructureConvert {
45116
45158
  const T = o.pageProperty;
45117
45159
  T.borderColor = s.borderColor, T.isPaintBorder = s.isPaintBorder == "true", T.paintRowLine = Number(s.paintRowLine);
45118
45160
  const M = Number(s.widthMm), A = Number(s.heightMm);
45119
- o.vueController.isA5(M, A) ? (T.pageSize = "A5", M > A ? (T.widthMm = 210, T.heightMm = 148, T.printDirection = 1) : (T.widthMm = 148, T.heightMm = 210, T.printDirection = 0)) : (T.widthMm = M, T.heightMm = A, T.printDirection = Number(s.printDirection), T.pageSize = s.pageSize), T.source = s.source, T.topMarginMm = Number(s.topMarginMm), T.bottomMarginMm = Number(s.bottomMarginMm), T.leftMarginMm = Number(s.leftMarginMm), T.rightMarginMm = Number(s.rightMarginMm), T.headerYMm = Number(s.headerYMm) >= 3 ? Number(s.headerYMm) : 3, T.footerYMm = Number(s.footerYMm) >= 3 ? Number(s.footerYMm) : 3, T.showFirstPageFoot = s.showFirstPageFoot === "true", T.showFirstPageHead = s.showFirstPageHead === "true", T.pageNumber = Number(s.pageNumber), T.isHaveBgImage = s.isHaveBgImage === "true", T.fontFormat = s.fontFormat ? s.fontFormat : i18nHelper("04-001-009-EMR.3.3.548", null, "宋体"), T.fontSize = s.fontSize ? Number(s.fontSize) : 14, T.fontColor = s.fontColor ? s.fontColor : "#000000", T.backColor = "transparent", T.paraAlign = s.paraAlign ? Number(s.paraAlign) : 3, T.charSpace = s.charSpace ? Number(s.charSpace) : 0, T.lineHeight = s.lineHeight ? Number(s.lineHeight) : 1.25, T.drawLineUnderline = s.drawLineUnderline === "true", T.lineUnderlineColor = s.lineUnderlineColor || "#000000", T.lineUnderlineStyle = s.lineUnderlineStyle == 1 ? 1 : 0;
45161
+ o.vueController.isA5(M, A) ? (T.pageSize = "A5", M > A ? (T.widthMm = 210, T.heightMm = 148, T.printDirection = 1) : (T.widthMm = 148, T.heightMm = 210, T.printDirection = 0)) : (T.widthMm = M, T.heightMm = A, T.printDirection = Number(s.printDirection), T.pageSize = s.pageSize), T.source = s.source, T.topMarginMm = Number(s.topMarginMm), T.bottomMarginMm = Number(s.bottomMarginMm), T.leftMarginMm = Number(s.leftMarginMm), T.rightMarginMm = Number(s.rightMarginMm), T.headerYMm = Number(s.headerYMm) >= 3 ? Number(s.headerYMm) : 3, T.footerYMm = Number(s.footerYMm) >= 3 ? Number(s.footerYMm) : 3, T.showFirstPageFoot = s.showFirstPageFoot === "true", T.showFirstPageHead = s.showFirstPageHead === "true", T.pageNumber = Number(s.pageNumber), T.startPageNumber = Number(s.startPageNumber), T.isHaveBgImage = s.isHaveBgImage === "true", T.fontFormat = s.fontFormat ? s.fontFormat : i18nHelper("04-001-009-EMR.3.3.548", null, "宋体"), T.fontSize = s.fontSize ? Number(s.fontSize) : 14, T.fontColor = s.fontColor ? s.fontColor : "#000000", T.backColor = "transparent", T.paraAlign = s.paraAlign ? Number(s.paraAlign) : 3, T.charSpace = s.charSpace ? Number(s.charSpace) : 0, T.lineHeight = s.lineHeight ? Number(s.lineHeight) : 1.25, T.drawLineUnderline = s.drawLineUnderline === "true", T.lineUnderlineColor = s.lineUnderlineColor || "#000000", T.lineUnderlineStyle = s.lineUnderlineStyle == 1 ? 1 : 0;
45120
45162
  }
45121
45163
  for (let T = 0; T < o.drawTree.drawPages.length; T++)
45122
45164
  o.drawTree.drawPages[T].reFreshBounds();
@@ -47700,6 +47742,15 @@ class VueController {
47700
47742
  r.drawTree.drawPages[o].reFreshBounds();
47701
47743
  r.drawTree.drawPages.length > 1 || r.drawTree.mainDNodes.length > 1 || r.drawTree.mainDNodes[0] instanceof DrawTable || r.drawTree.mainDNodes[0] instanceof DrawLine && r.drawTree.mainDNodes[0].drawItems.length > 0 || r.drawTree.headerDNodes.length >= 1 && r.drawTree.headerDNodes[0].length > 1 || r.drawTree.footerDNodes.length >= 1 && r.drawTree.footerDNodes[0].length > 1 ? this.rebuildAll(!0) : r.drawTree.updateDrawTreeFirstLine();
47702
47744
  }
47745
+ /**
47746
+ * 更新页面属性
47747
+ * @param key 属性key
47748
+ * @param value 更新值
47749
+ */
47750
+ setPagePropertyField(t, r) {
47751
+ const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
47752
+ o.docController.setPageProperty(JSON.stringify({ [t]: r })), t == "startPageNumber" && o.drawTree.rebuildArea("footer", !1);
47753
+ }
47703
47754
  /**
47704
47755
  * 添加批注
47705
47756
  * @param text 批注内容
@@ -64194,7 +64245,7 @@ WebPDecoder.prototype.getData = function() {
64194
64245
  (function(a) {
64195
64246
  function t() {
64196
64247
  return function() {
64197
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-C-NRuy_k.mjs");
64248
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-D8Jb9Hjp.mjs");
64198
64249
  }().catch(function(r) {
64199
64250
  return Promise.reject(new Error("Could not load canvg: " + r));
64200
64251
  }).then(function(r) {
@@ -66357,6 +66408,8 @@ class NodeStyleUndoUnit {
66357
66408
  doChangeStyle(t) {
66358
66409
  const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
66359
66410
  if (t instanceof TextNode || t instanceof ControlNode || t instanceof MarkNode || t instanceof ParagraphNode || t instanceof SignNode) {
66411
+ if (t instanceof ParagraphNode && t.parentNode && t.parentNode instanceof CellNode && t.parentNode.childNodes[0] == t)
66412
+ return;
66360
66413
  let o = r.docTree.styles[t.styleIndex];
66361
66414
  o || (o = r.docTree.styles[0]);
66362
66415
  let n;
@@ -71796,7 +71849,7 @@ class HOEditorFactory {
71796
71849
  // 错误图片地址
71797
71850
  b(this, "historyPosition", HistoryComponentPosition.right);
71798
71851
  // 历史痕迹展示位置 默认右侧 单行工具栏启用时候需要调整位置避免被业务弹窗挡住
71799
- b(this, "enableChangeTracking", !1);
71852
+ b(this, "enableChangeTracking", !0);
71800
71853
  b(this, "compressXml", !1);
71801
71854
  // 压缩xml
71802
71855
  b(this, "compressJSONData", {});
@@ -1,4 +1,4 @@
1
- import { c as Qe, _ as za, g as Io } from "./index-BZDmGwAu.mjs";
1
+ import { c as Qe, _ as za, g as Io } from "./index-D0Gk9boR.mjs";
2
2
  var ht = function(a) {
3
3
  return a && a.Math === Math && a;
4
4
  }, _ = (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hoeditor-web",
3
- "version": "3.2.48",
3
+ "version": "3.2.50",
4
4
  "private": false,
5
5
  "main": "lib/hoeditor.mjs",
6
6
  "typings": "types/index.d.ts",