UNPKG

react-zen-editor

Version:

A modern, feature-rich WYSIWYG editor for React with Korean/English support

41 lines 1.1 kB
export interface CustomEditorProps { value?: string; onChange?: (content: string) => void; } export interface ToolbarButtonProps { command?: string; icon: React.ComponentType<any>; title: string; value?: string | null; onClick?: (() => void) | null; executeCommand?: (command: string, value?: string | null) => void; } export type ModalType = 'link' | 'image' | 'video' | null; export interface ModalData { url: string; text?: string; alt?: string; target?: '_blank' | '_self'; } export interface DropdownButtonProps { icon: React.ComponentType<any>; title: string; options: Array<{ value: string; label: string; }>; onOptionSelect: (value: string) => void; placeholder?: string; } export interface ColorPickerProps { type: 'text' | 'background'; onColorSelect: (color: string) => void; } export interface ModalProps { modalData: ModalData; setModalData: (data: ModalData) => void; onInsert: () => void; onClose: () => void; selectedText?: string; } //# sourceMappingURL=index.d.ts.map