zy-react-library 1.0.141 → 1.0.142
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.
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IDomEditor } from "@wangeditor/editor";
|
|
2
2
|
import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|
3
3
|
|
|
4
4
|
export interface EditorProps {
|
|
5
5
|
/** 编辑器内容值 */
|
|
6
|
-
value
|
|
6
|
+
value: string;
|
|
7
7
|
/** 内容改变回调 */
|
|
8
|
-
onChange
|
|
8
|
+
onChange: (html: string) => void;
|
|
9
9
|
/** 是否禁用 */
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export interface EditorRef {
|
|
14
14
|
/** 获取编辑器实例 */
|
|
15
|
-
getEditorInstance: () =>
|
|
15
|
+
getEditorInstance: () => IDomEditor | null;
|
|
16
16
|
/** 获取HTML内容 */
|
|
17
17
|
getHtml: () => string | undefined;
|
|
18
18
|
/** 设置HTML内容 */
|