react-zen-editor
Version:
A modern, feature-rich WYSIWYG editor for React with Korean/English support
21 lines • 519 B
TypeScript
export interface CustomEditorProps {
value?: string;
onChange?: (content: string) => void;
}
export interface ToolbarButtonProps {
command?: string;
icon: React.ComponentType<{
size?: number;
}>;
title: string;
value?: string | null;
onClick?: (() => void) | null;
}
export type ModalType = 'link' | 'image' | 'video' | null;
export interface ModalData {
url: string;
text?: string;
alt?: string;
target?: '_blank' | '_self';
}
//# sourceMappingURL=types.d.ts.map