@hailin-zheng/editor-core 2.2.15 → 2.2.16
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 +15 -11
- package/index-cjs.js.map +1 -1
- package/index.js +15 -11
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -8770,13 +8770,15 @@ class DataElementGroupElement extends InlineGroupInputElement {
|
|
8770
8770
|
val += '';
|
8771
8771
|
}
|
8772
8772
|
if (val) {
|
8773
|
-
const items = val.split('
|
8773
|
+
const items = val.split('\n');
|
8774
8774
|
if (items.length) {
|
8775
8775
|
items.forEach((item, index) => {
|
8776
|
-
|
8777
|
-
|
8778
|
-
|
8779
|
-
|
8776
|
+
if (item) {
|
8777
|
+
const valueText = new TextGroupElement();
|
8778
|
+
this.props.valueTextProps.clone(valueText.props);
|
8779
|
+
valueText.text = item + '';
|
8780
|
+
this.addChild(valueText, this.length - 1);
|
8781
|
+
}
|
8780
8782
|
if (index < items.length - 1) {
|
8781
8783
|
const brElement = new BreakElement();
|
8782
8784
|
this.addChild(brElement, this.length - 1);
|
@@ -9172,13 +9174,15 @@ class DataElementText extends DataElementInlineGroup {
|
|
9172
9174
|
val += '';
|
9173
9175
|
}
|
9174
9176
|
if (val) {
|
9175
|
-
const items = val.split('
|
9177
|
+
const items = val.split('\n');
|
9176
9178
|
if (items.length) {
|
9177
9179
|
items.forEach((item, index) => {
|
9178
|
-
|
9179
|
-
|
9180
|
-
|
9181
|
-
|
9180
|
+
if (item) {
|
9181
|
+
const valueText = new TextGroupElement();
|
9182
|
+
this.props.valueTextProps.clone(valueText.props);
|
9183
|
+
valueText.text = item + '';
|
9184
|
+
this.addChild(valueText, this.length - 1);
|
9185
|
+
}
|
9182
9186
|
if (index < items.length - 1) {
|
9183
9187
|
const brElement = new BreakElement();
|
9184
9188
|
this.addChild(brElement, this.length - 1);
|
@@ -22285,7 +22289,7 @@ class DocEditor {
|
|
22285
22289
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
22286
22290
|
}
|
22287
22291
|
version() {
|
22288
|
-
return "2.2.
|
22292
|
+
return "2.2.16";
|
22289
22293
|
}
|
22290
22294
|
switchPageHeaderEditor() {
|
22291
22295
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|