slate-react
Version:
Tools for building completely customizable richtext editors with React.
17 lines • 630 B
TypeScript
import { Ancestor } from 'slate';
import { DOMEditor, type DOMEditorInterface } from 'slate-dom';
/**
* A React and DOM-specific version of the `Editor` interface.
*/
export interface ReactEditor extends DOMEditor {
/**
* Determines the chunk size used by the children chunking optimization. If
* null is returned (which is the default), the chunking optimization is
* disabled.
*/
getChunkSize: (node: Ancestor) => number | null;
}
export interface ReactEditorInterface extends DOMEditorInterface {
}
export declare const ReactEditor: ReactEditorInterface;
//# sourceMappingURL=react-editor.d.ts.map