No Description

index.d.ts 860B

1234567891011121314151617181920212223
  1. /// <reference types="react" />
  2. import React from "react";
  3. import { ControlType, EditorState } from "braft-editor";
  4. interface BaseEditorProps {
  5. value: EditorState;
  6. onChange: (editorState: EditorState) => void;
  7. contentStyle?: React.CSSProperties;
  8. controls?: ControlType[];
  9. blockRenderMap?: any;
  10. blockRendererFn?: any;
  11. blockStyleFn?: any;
  12. onDelete?: Function;
  13. onSave?: Function;
  14. onTab?: Function;
  15. onFocus?: Function;
  16. onBlur?: Function;
  17. draftProps?: any;
  18. placeholder?: string;
  19. converts?: any;
  20. }
  21. declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, draftProps, placeholder, blockRenderMap, blockRendererFn, blockStyleFn, onDelete, onSave, onTab, onFocus, onBlur, converts, }: BaseEditorProps) => JSX.Element;
  22. export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };