@kaitify/core 0.0.1-beta.32 → 0.0.1-beta.34

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.
@@ -516,9 +516,9 @@ export declare class Editor {
516
516
  */
517
517
  destroy(): void;
518
518
  /**
519
- * 获取编辑器的纯文本内容
519
+ * 获取编辑器的纯文本内容,excludeBreak表示是否排除换行符\n,excludeZeroWidthText表示是否排除零宽度空白字符
520
520
  */
521
- getContent(): string;
521
+ getContent(excludeBreak?: boolean, excludeZeroWidthText?: boolean): string;
522
522
  /**
523
523
  * 获取编辑器的html内容,该方法会返回一个包含style标签和div标签的html内容。自行展示html内容时可保证样式与编辑器一致,但是对于附件等有交互事件的元素交互事件会失效
524
524
  * cssText用于自定义哪些样式需要保留
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaitify/core",
3
- "version": "0.0.1-beta.32",
3
+ "version": "0.0.1-beta.34",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "author": "so-better",
@@ -49,4 +49,4 @@
49
49
  "access": "public",
50
50
  "registry": "https://registry.npmjs.org"
51
51
  }
52
- }
52
+ }