From 3cbbbd411aab957ced1ecc982ed68b2433b03466 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Sat, 6 Dec 2025 15:48:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Editor=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Editor/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Editor/index.d.ts b/components/Editor/index.d.ts index 03017ab..bafc394 100644 --- a/components/Editor/index.d.ts +++ b/components/Editor/index.d.ts @@ -1,4 +1,4 @@ -import type { Editor as WangEditorInstance } from "@wangeditor/editor"; +import type { IDomEditor } from "@wangeditor/editor"; import type { ForwardRefExoticComponent, RefAttributes } from "react"; export interface EditorProps { @@ -12,7 +12,7 @@ export interface EditorProps { export interface EditorRef { /** 获取编辑器实例 */ - getEditorInstance: () => WangEditorInstance | null; + getEditorInstance: () => IDomEditor | null; /** 获取HTML内容 */ getHtml: () => string | undefined; /** 设置HTML内容 */