UNPKG

@edtr-io/plugin-text

Version:
16 lines 637 B
import { OverlayContextValue, Plugin, DocumentState } from '@edtr-io/core'; import * as React from 'react'; import { SlateEditorAdditionalProps } from './editor'; import { TextPlugin } from '..'; export interface TextPluginOptions { plugins: ((pluginClosure: SlatePluginClosure) => TextPlugin)[]; placeholder?: React.ReactNode; } export declare type SlatePluginClosure = React.RefObject<{ overlayContext: OverlayContextValue; name: string; parent?: SlateEditorAdditionalProps; replace?: (options?: DocumentState) => void; plugins: Record<string, Plugin>; }>; //# sourceMappingURL=types.d.ts.map