hoeditor-web 3.0.62 → 3.0.63

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.
@@ -233454,7 +233454,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
233454
233454
  if (nextNode == nextNode.parentNode.EndMarkNode) {
233455
233455
  var lastPath = hoeditorfactory.docTree.getNodeLastPath(curNP.node);
233456
233456
  if (nextNode.parentNode.isEmpty()) {
233457
- hoeditorfactory.vueController.getCaretPreviousText(nextNode.parentNode.name);
233457
+ hoeditorfactory.vueController.getCaretPreviousText();
233458
233458
  } else {
233459
233459
  if (lastPath == startPos.path) {
233460
233460
  hoeditorfactory.vueController.getCaretPreviousText(nextNode.parentNode.text);
@@ -235795,7 +235795,7 @@ var ParagraphNode = __webpack_require__(67945);
235795
235795
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
235796
235796
  var MarkNode = __webpack_require__(57727);
235797
235797
  ;// CONCATENATED MODULE: ./src/components/version.ts
235798
- /* harmony default export */ var version = ('3.0.62');
235798
+ /* harmony default export */ var version = ('3.0.63');
235799
235799
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
235800
235800
  var PoperTipText = __webpack_require__(15845);
235801
235801
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -248460,21 +248460,25 @@ var VueController = /*#__PURE__*/function () {
248460
248460
  value: function getCaretPreviousText(value) {
248461
248461
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
248462
248462
  if (hoEditorFactory.aiTextFunc) {
248463
+ var _node$parentNode2;
248463
248464
  var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
248464
248465
  var node = curDomRange.npEnd.node;
248465
- var textFieldName = value || '';
248466
+ var textFieldName = '';
248466
248467
  var text = value || '';
248467
- if (!text && !textFieldName) {
248468
+ if (!text) {
248468
248469
  var _node$parentNode;
248469
248470
  if ((node === null || node === void 0 ? void 0 : node.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
248470
- textFieldName = node.parentNode.name.replace(/\s*/g, '');
248471
248471
  text = node.parentNode.text.replace(/\s*/g, '');
248472
248472
  } else if ((node === null || node === void 0 ? void 0 : (_node$parentNode = node.parentNode) === null || _node$parentNode === void 0 ? void 0 : _node$parentNode.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
248473
- var _node$parentNode2;
248474
- textFieldName = node === null || node === void 0 ? void 0 : (_node$parentNode2 = node.parentNode) === null || _node$parentNode2 === void 0 ? void 0 : _node$parentNode2.parentNode.name.replace(/\s*/g, '');
248475
248473
  text = node.parentNode.parentNode.text.replace(/\s*/g, '');
248476
248474
  }
248477
248475
  }
248476
+ if ((node === null || node === void 0 ? void 0 : node.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
248477
+ textFieldName = node.parentNode.name.replace(/\s*/g, '');
248478
+ } else if ((node === null || node === void 0 ? void 0 : (_node$parentNode2 = node.parentNode) === null || _node$parentNode2 === void 0 ? void 0 : _node$parentNode2.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
248479
+ var _node$parentNode3;
248480
+ textFieldName = node === null || node === void 0 ? void 0 : (_node$parentNode3 = node.parentNode) === null || _node$parentNode3 === void 0 ? void 0 : _node$parentNode3.parentNode.name.replace(/\s*/g, '');
248481
+ }
248478
248482
  var callback = function callback(aiText) {
248479
248483
  var aiInfo = hoEditorFactory.drawTree.caret.aiInfo;
248480
248484
  hoEditorFactory.drawTree.caret.aiInfo.lastPosition = [aiInfo.pageIndex, aiInfo.x, aiInfo.y];