No Description

index.d.ts 822B

12345678910111213141516171819202122
  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. onDelete?: Function;
  12. onSave?: Function;
  13. onTab?: Function;
  14. onFocus?: Function;
  15. onBlur?: Function;
  16. draftProps?: any;
  17. placeholder?: string;
  18. converts?: any;
  19. }
  20. declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, draftProps, placeholder, blockRenderMap, blockRendererFn, onDelete, onSave, onTab, onFocus, onBlur, converts, }: BaseEditorProps) => JSX.Element;
  21. export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };