@kedao/editor
Version:
Rich Text Editor Based On Draft.js
24 lines (23 loc) • 850 B
TypeScript
export declare const getBlockRenderMap: (props: any, blockRenderMap: any) => Immutable.Map<string, {
element: string;
wrapper?: undefined;
} | {
element: string;
wrapper: JSX.Element;
}>;
export declare const getBlockRendererFn: (superProps: any, customBlockRendererFn: any) => (block: any) => any;
export declare const getBlockStyleFn: (customBlockStyleFn: any) => (block: any) => string;
export declare const getCustomStyleMap: (props: any, customStyleMap?: {}) => {
SUPERSCRIPT: {
position: string;
top: string;
fontSize: string;
};
SUBSCRIPT: {
position: string;
bottom: string;
fontSize: string;
};
};
export declare const getCustomStyleFn: (props: any, options: any) => (styles: any, block: any) => any;
export declare const getDecorators: (editorId: any) => any;