@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 +2 -2
- package/index-cjs.js.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -4871,7 +4871,7 @@ class TextGroupRenderObject extends LeafRenderObject {
|
|
4871
4871
|
const arr = [];
|
4872
4872
|
let text = '';
|
4873
4873
|
this.textMeasures.reduce((prev, curr) => {
|
4874
|
-
if (curr.char !== ' ') {
|
4874
|
+
if (curr.char !== ' ' && curr.char !== '\n' && curr.char !== '\r') {
|
4875
4875
|
arr.push(prev);
|
4876
4876
|
text += curr.char;
|
4877
4877
|
}
|
@@ -28773,7 +28773,7 @@ class DocEditor {
|
|
28773
28773
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28774
28774
|
}
|
28775
28775
|
version() {
|
28776
|
-
return "2.1.
|
28776
|
+
return "2.1.13";
|
28777
28777
|
}
|
28778
28778
|
switchPageHeaderEditor() {
|
28779
28779
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|