Hooks and components for consuming remirror with your fave framework React.
Overall
score
36%
Evaluation — 36%
↑ 1.09xAgent success when using this tile
A minimal React component that wraps a rich-text editor provider so callers can initialize HTML content, toggle editability, and receive change events in both HTML and JSON forms.
initialHtml so the provided markup is visible on the first paint in the editable surface @testinitialHtml is empty and placeholder is set, shows that placeholder text until the user types content @testeditable prop; when false, the content is read-only and does not request focus, when true the editor autofocuses on mount when autoFocus is true @testonHtmlChange with the serialized HTML string for the current document @testonJsonChange with the document JSON representation that includes a paragraph node containing the typed text @test@generates
export interface ArticleEditorProps {
initialHtml?: string;
placeholder?: string;
editable?: boolean;
autoFocus?: boolean;
onHtmlChange?: (html: string) => void;
onJsonChange?: (doc: unknown) => void;
className?: string;
}
export function ArticleEditor(props: ArticleEditorProps): JSX.Element;Provides React editor provider, initialization hook, and content component for managing rich-text state and updates.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10