react-quill-editors
Version:
A fully customizable React rich text editor with no external dependencies. Features a comprehensive toolbar similar to popular Markdown editors with file operations, media insertion, and advanced formatting capabilities.
67 lines • 1.49 kB
TypeScript
import React from 'react';
export interface EditorFeatures {
bold?: boolean;
italic?: boolean;
underline?: boolean;
strikethrough?: boolean;
heading?: boolean;
fontSize?: boolean;
fontFamily?: boolean;
color?: boolean;
bgColor?: boolean;
align?: boolean;
lists?: boolean;
link?: boolean;
image?: boolean;
video?: boolean;
code?: boolean;
quote?: boolean;
horizontalRule?: boolean;
table?: boolean;
emoji?: boolean;
attachment?: boolean;
preview?: boolean;
save?: boolean;
delete?: boolean;
close?: boolean;
}
export interface RichTextEditorProps {
features?: EditorFeatures;
value?: string;
onChange?: (value: string) => void;
placeholder?: string;
className?: string;
style?: React.CSSProperties;
readOnly?: boolean;
disabled?: boolean;
onSave?: () => void;
onDelete?: () => void;
onClose?: () => void;
onPreview?: () => void;
}
export interface ToolbarButtonProps {
icon: string;
title: string;
onClick: () => void;
isActive?: boolean;
disabled?: boolean;
}
export interface FontSizeOption {
value: string;
label: string;
}
export interface FontFamilyOption {
value: string;
label: string;
}
export interface ColorOption {
value: string;
label: string;
color: string;
}
export interface AlignmentOption {
value: string;
label: string;
icon: string;
}
//# sourceMappingURL=index.d.ts.map