No Description

index.d.ts 867B

12345678910111213141516171819202122
  1. /// <reference types="react" />
  2. import React from "react";
  3. import { EditorState, DraftEditorCommand, ContentBlock } from "draft-js";
  4. interface RichTextEditorProps {
  5. }
  6. interface RichTextEditorState {
  7. editorState: EditorState;
  8. }
  9. declare class RichTextEditor extends React.Component<RichTextEditorProps, RichTextEditorState> {
  10. constructor(props: RichTextEditorProps);
  11. onChange: (editorState: EditorState) => void;
  12. handleKeyCommand(command: DraftEditorCommand, editorState: EditorState): "handled" | "not-handled";
  13. _onBoldClick(): void;
  14. _onLinkClick(): void;
  15. _onEmojiClick(e: React.MouseEvent, emojiCode: string): void;
  16. _onCheckRange(): void;
  17. defaultBlockStyleFn(contentBlock: ContentBlock): string;
  18. defaultBlockRenderFn(contentBlock: ContentBlock): ContentBlock;
  19. render(): JSX.Element;
  20. }
  21. export { RichTextEditor as default };