@kaitify/core 0.0.1-beta.20 → 0.0.1-beta.21

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.
@@ -377,6 +377,10 @@ export declare class Editor {
377
377
  * 是否深色模式
378
378
  */
379
379
  isDark(): boolean;
380
+ /**
381
+ * 判断编辑器是否为空,这里的空指的是编辑器内只有一个段落,并且段落里只有占位符
382
+ */
383
+ isEmpty(): boolean;
380
384
  /**
381
385
  * dom转KNode
382
386
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaitify/core",
3
- "version": "0.0.1-beta.20",
3
+ "version": "0.0.1-beta.21",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "author": "so-better",