12345678910111213141516171819202122 |
- /// <reference types="react" />
- import React from "react";
- import { EditorState, DraftEditorCommand, ContentBlock } from "draft-js";
- interface RichTextEditorProps {
- }
- interface RichTextEditorState {
- editorState: EditorState;
- }
- declare class RichTextEditor extends React.Component<RichTextEditorProps, RichTextEditorState> {
- constructor(props: RichTextEditorProps);
- onChange: (editorState: EditorState) => void;
- handleKeyCommand(command: DraftEditorCommand, editorState: EditorState): "handled" | "not-handled";
- _onBoldClick(): void;
- _onLinkClick(): void;
- _onEmojiClick(e: React.MouseEvent, emojiCode: string): void;
- _onCheckRange(): void;
- defaultBlockStyleFn(contentBlock: ContentBlock): string;
- defaultBlockRenderFn(contentBlock: ContentBlock): ContentBlock;
- render(): JSX.Element;
- }
- export { RichTextEditor as default };
|