@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.js CHANGED
@@ -11692,8 +11692,13 @@ class ParagraphMeasure {
11692
11692
  return;
11693
11693
  }
11694
11694
  else {
11695
- parentLine.add(render);
11696
- parentLine.applyNewLine();
11695
+ if (parentLine.lineWidth() === 0) {
11696
+ parentLine.add(render);
11697
+ }
11698
+ else {
11699
+ parentLine.applyNewLine();
11700
+ this.arrangeLeafRender(parentLine, render);
11701
+ }
11697
11702
  }
11698
11703
  }
11699
11704
  else {