slate-react
Version:
Tools for building completely customizable richtext editors with React.
14 lines • 388 B
TypeScript
import { BaseRange, BaseText } from 'slate';
import { ReactEditor } from './plugin/react-editor';
declare module 'slate' {
interface CustomTypes {
Editor: ReactEditor;
Text: BaseText & {
placeholder: string;
};
Range: BaseRange & {
placeholder?: string;
};
}
}
//# sourceMappingURL=custom-types.d.ts.map