kedao
Version:
Rich Text Editor Based On Draft.js
19 lines (18 loc) • 606 B
TypeScript
import { FC } from 'react';
import { BlockRenderProps, ImageControlItem } from '../../types';
import { ContentBlock, EditorState } from 'draft-js';
interface ImageProps extends BlockRenderProps {
imageEqualRatio: boolean;
entityKey: string;
block: ContentBlock;
imageResizable: boolean;
imageControls: readonly ImageControlItem[];
lock: (locked: boolean) => void;
getContainerNode: () => HTMLElement;
readOnly: boolean;
value: EditorState;
onChange: (state: EditorState) => void;
refresh: () => void;
}
declare const Image: FC<ImageProps>;
export default Image;