@sanity/form-builder
Version:
Sanity form builder
24 lines • 1.03 kB
TypeScript
import { HotkeyOptions, RenderAnnotationFunction, RenderBlockFunction, RenderChildFunction, OnPasteFn, OnCopyFn, EditorSelection, ScrollSelectionIntoViewFunction } from '@sanity/portable-text-editor';
import React from 'react';
import { Path } from '@sanity/types';
interface EditorProps {
initialSelection?: EditorSelection;
isActive: boolean;
isFullscreen: boolean;
hotkeys: HotkeyOptions;
onFocus: (path: Path) => void;
onCopy?: OnCopyFn;
onPaste?: OnPasteFn;
onToggleFullscreen: () => void;
readOnly?: boolean;
renderAnnotation: RenderAnnotationFunction;
renderBlock: RenderBlockFunction;
renderChild: RenderChildFunction;
scrollElement: HTMLElement | null;
scrollSelectionIntoView: ScrollSelectionIntoViewFunction;
setPortalElement?: (portalElement: HTMLDivElement | null) => void;
setScrollElement: (scrollElement: HTMLElement | null) => void;
}
export declare function Editor(props: EditorProps): React.JSX.Element;
export {};
//# sourceMappingURL=Editor.d.ts.map