@kedao/editor
Version:
Rich Text Editor Based On Draft.js
61 lines (60 loc) • 1.49 kB
TypeScript
import './style.scss';
import * as _TableUtils from './utils';
export declare let dropdownInstance: any;
export declare const TableUtils: typeof _TableUtils;
declare const _default: (options: any) => ({
type: string;
includeEditors: any;
excludeEditors: any;
control: (props: any) => {
key: string;
replace: string;
type: string;
title: any;
text: JSX.Element;
showArrow: boolean;
autoHide: boolean;
ref: (instance: any) => any;
component: JSX.Element;
};
} | {
type: string;
includeEditors: any;
excludeEditors: any;
control: (props: any) => {
key: string;
replace: string;
type: string;
title: any;
text: JSX.Element;
onClick: () => void;
};
} | {
type: string;
includeEditors: any;
excludeEditors: any;
interceptor: (editorProps: any) => any;
name?: undefined;
renderMap?: undefined;
importer?: undefined;
exporter?: undefined;
} | {
type: string;
name: string;
includeEditors: any;
excludeEditors: any;
renderMap: (props: any) => Immutable.Map<string, {
element: string;
wrapper: JSX.Element;
}>;
importer: (nodeName: any, node: any) => {
type: string;
data: any;
};
exporter: (contentState: any, block: any) => {
start: string;
end: string;
};
interceptor?: undefined;
})[];
export default _default;