contenido
Version:
Contenido is a library with a set of tools to help you create your own rich text editor on top of draft-js without thinking about how to handle things.
10 lines (9 loc) • 379 B
TypeScript
import type { FC, RefObject } from 'react';
import type { EditorProps as DraftEditorProps, Editor as DraftEditorType } from 'draft-js';
import './styles/main.css';
export interface EditorProps extends DraftEditorProps {
rtlPlaceholder?: boolean;
editorRef?: RefObject<DraftEditorType> | undefined;
}
declare const Editor: FC<EditorProps>;
export default Editor;