@hailin-zheng/editor-core 2.1.14 → 2.1.15
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 +6 -1
- package/index-cjs.js.map +1 -1
- package/index.js +6 -1
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +1 -0
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -28818,11 +28818,16 @@ class DocEditor {
|
|
28818
28818
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28819
28819
|
}
|
28820
28820
|
version() {
|
28821
|
-
return "2.1.
|
28821
|
+
return "2.1.15";
|
28822
28822
|
}
|
28823
28823
|
switchPageHeaderEditor() {
|
28824
28824
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|
28825
28825
|
}
|
28826
|
+
getTextContent() {
|
28827
|
+
const paras = this.docCtx.document.treeFilter(item => item instanceof ParagraphElement);
|
28828
|
+
const paraTexts = paras.map(item => ElementSerialize.serializeString(item, { all: false }));
|
28829
|
+
return paraTexts.join('\n');
|
28830
|
+
}
|
28826
28831
|
}
|
28827
28832
|
|
28828
28833
|
/**
|