UNPKG

@hhgtech/hhg-components

Version:
21 lines (20 loc) 774 B
import React, { CSSProperties } from 'react'; export type Props = { html?: string; onChange?: (s: string) => void; className?: string; style?: CSSProperties; onImagePickerClick?: () => void; bannedWords?: string[]; onInvalidUrlsChange?: (v: string[]) => void; onPreviewUrlChange?: (v: { title: string; url: string; image: string; description: string; } | null) => void; setEditorRef?: (editor: HTMLElement) => void; isReplying?: boolean; }; export declare const RichTextEditor: ({ html, onChange, className, style, onImagePickerClick, bannedWords, onInvalidUrlsChange, onPreviewUrlChange, setEditorRef, isReplying, }: Props) => React.JSX.Element; export default RichTextEditor;