@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.js CHANGED
@@ -28789,11 +28789,16 @@ class DocEditor {
28789
28789
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
28790
28790
  }
28791
28791
  version() {
28792
- return "2.1.14";
28792
+ return "2.1.15";
28793
28793
  }
28794
28794
  switchPageHeaderEditor() {
28795
28795
  this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
28796
28796
  }
28797
+ getTextContent() {
28798
+ const paras = this.docCtx.document.treeFilter(item => item instanceof ParagraphElement);
28799
+ const paraTexts = paras.map(item => ElementSerialize.serializeString(item, { all: false }));
28800
+ return paraTexts.join('\n');
28801
+ }
28797
28802
  }
28798
28803
 
28799
28804
  /**