@hailin-zheng/editor-core 2.1.14 → 2.1.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 +8 -4
- package/index-cjs.js.map +1 -1
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +2 -1
- package/med_editor/framework/element-props.d.ts +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -2646,7 +2646,7 @@ class ValidateProps {
|
|
2646
2646
|
return clone;
|
2647
2647
|
}
|
2648
2648
|
}
|
2649
|
-
class DataElementGroupProps {
|
2649
|
+
class DataElementGroupProps extends INotifyPropertyChanged {
|
2650
2650
|
id;
|
2651
2651
|
name;
|
2652
2652
|
hidden;
|
@@ -28542,8 +28542,7 @@ class DocEditor {
|
|
28542
28542
|
});
|
28543
28543
|
offPrint.afterPrint.subscribe(() => {
|
28544
28544
|
});
|
28545
|
-
|
28546
|
-
console.log(html);
|
28545
|
+
return offPrint.getSvgNodes(this.docCtx.document.paintRenders);
|
28547
28546
|
}
|
28548
28547
|
/**
|
28549
28548
|
* 设置光标在数据元内容末尾
|
@@ -28789,11 +28788,16 @@ class DocEditor {
|
|
28789
28788
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28790
28789
|
}
|
28791
28790
|
version() {
|
28792
|
-
return "2.1.
|
28791
|
+
return "2.1.16";
|
28793
28792
|
}
|
28794
28793
|
switchPageHeaderEditor() {
|
28795
28794
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|
28796
28795
|
}
|
28796
|
+
getTextContent() {
|
28797
|
+
const paras = this.docCtx.document.treeFilter(item => item instanceof ParagraphElement);
|
28798
|
+
const paraTexts = paras.map(item => ElementSerialize.serializeString(item, { all: false }));
|
28799
|
+
return paraTexts.join('\n');
|
28800
|
+
}
|
28797
28801
|
}
|
28798
28802
|
|
28799
28803
|
/**
|