@hailin-zheng/editor-core 1.1.23 → 1.1.24

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/index-cjs.js CHANGED
@@ -11722,8 +11722,13 @@ class ParagraphMeasure {
11722
11722
  return;
11723
11723
  }
11724
11724
  else {
11725
- parentLine.add(render);
11726
- parentLine.applyNewLine();
11725
+ if (parentLine.lineWidth() === 0) {
11726
+ parentLine.add(render);
11727
+ }
11728
+ else {
11729
+ parentLine.applyNewLine();
11730
+ this.arrangeLeafRender(parentLine, render);
11731
+ }
11727
11732
  }
11728
11733
  }
11729
11734
  else {