UNPKG

@lobehub/editor

Version:

A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.

29 lines (28 loc) 992 B
/// <reference types="react" /> import { type TextAreaRef } from 'antd/es/input/TextArea'; import { MathBlockNode, MathInlineNode } from '../../node'; export interface MathEditorContentProps { /** 焦点引用 */ focusRef?: (ref: TextAreaRef | null) => void; /** 数学节点 */ mathNode: MathInlineNode | MathBlockNode | null; /** 左箭头回调 */ onArrowLeft: () => void; /** 右箭头回调 */ onArrowRight: () => void; /** 取消回调 */ onCancel: () => void; /** 删除节点回调 */ onDelete: () => void; /** 提交回调 */ onSubmit: () => void; /** 验证状态变化回调 */ onValidationChange?: (isValid: boolean) => void; /** 值变化回调 */ onValueChange: (value: string) => void; /** 是否从前一个位置进入 */ /** 当前输入值 */ value: string; } declare const MathEditorContent: import("react").NamedExoticComponent<MathEditorContentProps>; export default MathEditorContent;