@hailin-zheng/editor-core 2.1.12 → 2.1.13

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
@@ -4900,7 +4900,7 @@ class TextGroupRenderObject extends LeafRenderObject {
4900
4900
  const arr = [];
4901
4901
  let text = '';
4902
4902
  this.textMeasures.reduce((prev, curr) => {
4903
- if (curr.char !== ' ') {
4903
+ if (curr.char !== ' ' && curr.char !== '\n' && curr.char !== '\r') {
4904
4904
  arr.push(prev);
4905
4905
  text += curr.char;
4906
4906
  }
@@ -28802,7 +28802,7 @@ class DocEditor {
28802
28802
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
28803
28803
  }
28804
28804
  version() {
28805
- return "2.1.12";
28805
+ return "2.1.13";
28806
28806
  }
28807
28807
  switchPageHeaderEditor() {
28808
28808
  this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);