text-editor-studio-ts
Version:
A powerful mobile-responsive rich text editor built with Lexical and React
21 lines (17 loc) • 768 B
TypeScript
import { EditorState, SerializedEditorState } from 'lexical';
import { InitialConfigType } from '@lexical/react/LexicalComposer';
import * as React from 'react';
export interface EditorProps {
editorState?: EditorState;
editorSerializedState?: SerializedEditorState;
onChange?: (editorState: EditorState) => void;
onSerializedChange?: (editorSerializedState: SerializedEditorState) => void;
onHtmlChange?: (html: string) => void;
placeholder?: string;
className?: string;
}
export declare const Editor: React.FC<EditorProps>;
export declare const EditorWebComponent: any;
// Re-export useful types from Lexical
export type { EditorState, SerializedEditorState } from 'lexical';
export type { InitialConfigType } from '@lexical/react/LexicalComposer';